Wholeheartedly recommend not reinventing the daemon wheel - self-daemonizing 
programs and self log-rotating problems never do things quite the way one needs.

use systemd, if that's what on your system, or (I recommend) a djb-inspired 
system: daemontools, s6, nosh , etc - they are ultra simple and roc solid.

Reply via email to