Expand description

Easy to use daemonizing for rust programs in unix enviroment.

daemonize_redirect(Some("stdout.log"), Some("stderr.log"), ChdirMode::ChdirRoot).unwrap();

See examples for sample program.

Enums

The error type for daemonizing related operations.

Functions

Performs program daemonizing with optional redirection for STDIN and STDOUT. If the redirection parameter is None, then stream will be redirected to /dev/null, otherwise it will be redirected to the file provided.