Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kill ¶
Kill opens the pidfile at the specified path, attempts to read the PID and kill the process represented by that PID. If the file doesn't exist, the corresponding process doesn't exist, or the process is successfully killed, reports no error and returns the pid of the killed process (if no process was killed, returns pid 0). Otherwise, returns an error indicating the failure to kill the process.
On success, deletes the pidfile from the filesystem. Otherwise, leaves it in place.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.