All Projects → knsd → Daemonize

knsd / Daemonize

Licence: other
Library for writing system daemons

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Daemonize

Daemonize
daemonize is a library for writing system daemons in Python.
Stars: ✭ 396 (+88.57%)
Mutual labels:  daemon, osx, system
deswappify-auto
automatically swap-in pages when enough memory is available
Stars: ✭ 30 (-85.71%)
Mutual labels:  system, daemon
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+546.67%)
Mutual labels:  osx, system
nodejs-system-sleep
Sleep function for Node.js All platforms.
Stars: ✭ 47 (-77.62%)
Mutual labels:  system, osx
Maclaunch
Manage your macOS startup items.
Stars: ✭ 133 (-36.67%)
Mutual labels:  daemon, osx
Seamly2d
Open source patternmaking software.
Stars: ✭ 197 (-6.19%)
Mutual labels:  osx
Pywebview
Build GUI for your Python program with JavaScript, HTML, and CSS
Stars: ✭ 2,649 (+1161.43%)
Mutual labels:  osx
Control And System Book
textbook about control, robotics, system
Stars: ✭ 190 (-9.52%)
Mutual labels:  system
Ktrl
A Supercharged Keyboard Programming Daemon ⌨️
Stars: ✭ 190 (-9.52%)
Mutual labels:  daemon
Slimbootloader
Visit http://slimbootloader.github.io for documentation
Stars: ✭ 206 (-1.9%)
Mutual labels:  system
Pibar
PiBar for Pi-hole - Manage your Pi-hole(s) from your menu bar!
Stars: ✭ 208 (-0.95%)
Mutual labels:  osx
Frei0r
A large collection of free and portable video plugins
Stars: ✭ 202 (-3.81%)
Mutual labels:  osx
Screenshot Desktop
💻 Capture a screenshot of your local machine
Stars: ✭ 197 (-6.19%)
Mutual labels:  osx
Glslviewer
Console-based GLSL Sandbox for 2D/3D shaders shaders
Stars: ✭ 2,834 (+1249.52%)
Mutual labels:  osx
Cocoa Rest Client
A free, native Apple macOS app for testing HTTP/REST endpoints
Stars: ✭ 2,257 (+974.76%)
Mutual labels:  osx
Whapp Irc
whatsapp web <-> irc gateway
Stars: ✭ 208 (-0.95%)
Mutual labels:  daemon
Comics Downloader
tool to download comics and manga in pdf/epub/cbr/cbz from a website
Stars: ✭ 190 (-9.52%)
Mutual labels:  osx
Macphish
Office for Mac Macro Payload Generator
Stars: ✭ 202 (-3.81%)
Mutual labels:  osx
Iowow
The skiplist based persistent key/value storage engine
Stars: ✭ 206 (-1.9%)
Mutual labels:  osx
Fatcat
FAT filesystems explore, extract, repair, and forensic tool
Stars: ✭ 201 (-4.29%)
Mutual labels:  system

daemonize Build Status Latest Version docs

daemonize is a library for writing system daemons. Inspired by the Python library thesharp/daemonize.

Usage example:

extern crate daemonize;

use std::fs::File;

use daemonize::Daemonize;

fn main() {
    let stdout = File::create("/tmp/daemon.out").unwrap();
    let stderr = File::create("/tmp/daemon.err").unwrap();

    let daemonize = Daemonize::new()
        .pid_file("/tmp/test.pid") // Every method except `new` and `start`
        .chown_pid_file(true)      // is optional, see `Daemonize` documentation
        .working_directory("/tmp") // for default behaviour.
        .user("nobody")
        .group("daemon") // Group name
        .group(2)        // or group id.
        .umask(0o777)    // Set umask, `0o027` by default.
        .stdout(stdout)  // Redirect stdout to `/tmp/daemon.out`.
        .stderr(stderr)  // Redirect stderr to `/tmp/daemon.err`.
        .privileged_action(|| "Executed before drop privileges");

    match daemonize.start() {
        Ok(_) => println!("Success, daemonized"),
        Err(e) => eprintln!("Error, {}", e),
    }
}

License

Licensed under either of

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].