Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitingSignal ¶
func AwaitingSignal(done chan bool, f func())
AwaitingSignal awaits signal interrupt(ctl+c) or terminated(by kill)
func UpdatePidFile ¶
UpdatePidFile update the pid to pidFile like var/pid (kill -USR2 {pid} 会执行重启) If pidFile is empty, it will try env PID_FILE' value, then to "var/pid" file.
Types ¶
Click to show internal directories.
Click to hide internal directories.