Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfAlreadyRunning ¶
CheckIfAlreadyRunning check for pid file (location is given by pidFilePath parameter) file existence. If exist, it'll get saved pid and check if the process is still running. Returns a boolean notifying if the process is running and the process in question if it exists
func DumpProcessPidToFile ¶
func DumpProcessPidToFile()
DumpProcessPidToFile get program pid and save it to pidFilePath file
func Init ¶
func Init(path string)
Init take into parameter pid file path and update associated process package variable
func TerminateRunningInstance ¶
func TerminateRunningInstance() error
TerminateRunningInstance check if the pid stored in the pid file is running and, if yes, terminate it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.