Documentation
¶
Overview ¶
Package proc starts stagent processes that must outlive their caller: the daemon (auto-started by whoever needs it first) and detached holders.
Index ¶
- func Alive(pid int) bool
- func SpawnDetached(exe string, args []string, dir string, env []string, logPath string) (int, error)
- func SpawnHolder(exe string, args []string, dir string, env []string, logPath string) (int, error)
- func StartHolder(exe string, args []string, dir string, env []string, logPath string) (pid int, outsideGUI bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpawnDetached ¶
func SpawnDetached(exe string, args []string, dir string, env []string, logPath string) (int, error)
SpawnDetached starts exe with args in a new session so it survives the caller, its terminal and the SSH connection. stdin/stdout go to /dev/null, stderr is appended to logPath (if non-empty). env nil inherits.
func SpawnHolder ¶ added in v0.4.2
SpawnHolder starts a detached holder: SpawnDetached everywhere but macOS.
Types ¶
This section is empty.