Skip to main content

Module daemon

Module daemon 

Source

Modules§

control

Functions§

daemonize
Daemonize the current process (fork to background)
read_pid
Read PID from file and check if process is alive
remove_pid
Remove PID file
stop_daemon
Stop the daemon: send SIGTERM, wait up to 10s, then SIGKILL
write_pid
Write PID to file