Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProcStateStopped = "NOT RUNNING" ProcStateDead = "ERROR. The process is dead" ProcStateRunning = "RUNNING. PID: %v." )
Variables ¶
This section is empty.
Functions ¶
func CheckPIDFile ¶
CheckPIDFile checks that the process PID file exists and is readable. Or process is already exist. Removes PID file if process is dead.
func CreatePIDFile ¶
CreatePIDFile checks that the instance PID file is absent or deprecated and creates a new one. Returns an error on failure.
func GetPIDFromFile ¶
GetPIDFromFile returns PID from the PIDFile.
func IsProcessAlive ¶
IsProcessAlive checks if the process is alive.
func ProcessStatus ¶
ProcessStatus returns the status of the process.
func StopProcess ¶
StopProcess stops the process by pidFile.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.