Yet Another Daemonizer is a daemonizing crate to easily, simply, and correctly create legacy daemons.
This crate focuses on manually creating a background process which is not managed by a supervisor such as systemd or launchd. It strives to follow all the best practices to correctly daemonize a process.
```rust use yad::options::Stdio;
match yad::withoptions() .stdin(Stdio::Null) .stderr(Stdio::Null) .stdout(Stdio::output("/var/log/daemon.log")) .daemonize() { Ok() => println!("I'm a daemon"), Err(err) => eprintln!("Failed to launch daemon: {}", err), } ```