1 unstable release

Uses old Rust 2015

0.1.2 Dec 8, 2015

#10 in #daemonize

Download history 75/week @ 2024-12-08 43/week @ 2024-12-15 18/week @ 2024-12-22 19/week @ 2024-12-29 33/week @ 2025-01-05 31/week @ 2025-01-12 41/week @ 2025-01-19 32/week @ 2025-01-26 57/week @ 2025-02-02 47/week @ 2025-02-09 31/week @ 2025-02-16 138/week @ 2025-02-23 36/week @ 2025-03-02 35/week @ 2025-03-09 153/week @ 2025-03-16 41/week @ 2025-03-23

275 downloads per month
Used in 2 crates

MIT license

5KB
95 lines

unix-daemonize rust crate

Summary

Easy to use daemonizing for rust programs in unix enviroment.

Using unix-daemonize

Add to Cargo.toml:

[dependencies]
unix-daemonize = "0.1"

To src/main.rs:

extern crate unix_daemonize;

use unix_daemonize::{daemonize_redirect, ChdirMode};

fn main() {
    daemonize_redirect(Some("/tmp/stdout.log"), Some("/tmp/stderr.log"), ChdirMode::ChdirRoot).unwrap()
}

Dependencies

~44KB