parameters: ()
return_statement: return result
docstring: Determine if the current process is started by `init`.
  
          The `init` process has the process ID of 1; if that is our
          parent process ID, return ``True``, otherwise ``False``.
docstring_summary: Determine if the current process is started by `init`.
docstring_tokens: Determine if the current process is started by init .
function: def is_process_started_by_init():
      """ Determine if the current process is started by `init`.
  
          The `init` process has the process ID of 1; if that is our
          parent process ID, return ``True``, otherwise ``False``.
      
          """
      result = False
  
      init_pid = 1
      if os.getppid() == init_pid:
          result = True
  
      return result
function_tokens: def is_process_started_by_init ( ) : result = False init_pid = 1 if os . getppid ( ) == init_pid : result = True return result