Skip to content

swizard0/unix-daemonize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages