Modules§
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