Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartBackground ¶
StartBackground runs a shell command as a background process, saves its PID to pidFile, and returns immediately. The process is started in its own process group so it can be killed cleanly with StopProcess.
func StopProcess ¶
StopProcess sends SIGTERM to the process group, waits up to 5 seconds, then sends SIGKILL if the process is still running. Removes the PID file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.