Crate unix_daemonize [] [src]

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

ChdirMode
Error

The error type for daemonizing related operations.

Functions

daemonize_redirect

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.