Crate daemonize2

Source
Expand description

§daemonize2

Build Status docs Latest Version

OpenSSF Scorecard OpenSSF Best Practices

daemonize2 is a library for writing SysV daemons. It is inspired by the Python library daemonize and is based on the original daemonize crate that went unmaintained.

§Example

For an example on how to use this crate, see complex.rs.

§License

Licensed under either of

at your choice.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Structs§

Child
Child process execution outcome.
Daemonize
Daemonization options.
Error
Error type returned by Daemonize::start().
Group
Expects system group ID or name. If a name is provided, it will be resolved to an ID later.
Mask
File mode creation mask.
Parent
Parent process execution outcome.
Stdio
Describes what to do with a standard I/O stream for a child process.
User
Expects system user ID or name. If a name is provided, it will be resolved to an ID later.

Enums§

ErrorKind
Error kind used inside struct Error.
Outcome
Daemonization process outcome. Can be matched to check is it a parent process or a child process.