pub fn daemonize() -> Result<()>
Fork twice, start a new session, move to /, and point the standard descriptors at /dev/null.
/
/dev/null
Returns only in the final grandchild; the intermediate processes call _exit(0).
_exit(0)