#daemon #unix #daemonize #system

daemonize-me

Rust library to ease the task of creating daemons on unix-like systems

15 releases (5 stable)

2.0.1 Apr 11, 2022
2.0.1-alpha Jan 25, 2022
1.0.2 Apr 11, 2022
1.0.1 Mar 22, 2022
0.1.3-alpha Jun 27, 2020

#334 in Unix APIs

Download history 937/week @ 2023-12-14 203/week @ 2023-12-21 818/week @ 2023-12-28 978/week @ 2024-01-04 927/week @ 2024-01-11 1336/week @ 2024-01-18 1678/week @ 2024-01-25 1817/week @ 2024-02-01 1210/week @ 2024-02-08 1838/week @ 2024-02-15 1474/week @ 2024-02-22 1748/week @ 2024-02-29 1450/week @ 2024-03-07 1750/week @ 2024-03-14 1701/week @ 2024-03-21 695/week @ 2024-03-28

6,004 downloads per month
Used in 3 crates

BSD-3-Clause/Apache-2.0

37KB
863 lines

daemonize-me Rust Crates.io Crates.io Crates.io

Rust library to ease the task of creating daemons, I have drawn heavy inspiration from Daemonize by knsd.

Current releases and EOL table

track version EOL
2.0 2.0.1 TBA
1.0(LTS) 1.0.2 2022-10

Basic usage

Add it to your cargo.toml this will add the whole 2.0.x series as compatible as per semver

daemonize-me = "2.0"

Then look at example.rs

OS support

I will try to keep support for linux, freebsd and macos

os tier
linux tier 1
freebsd, openbsd tier 2
macos, netbsd, unix tier 3
Anything non unix not supported

For tier 1 any code that breaks the tests and or ci/cd is blocking for a release, tier 2 compilation errors are release blocking, tier 3 are supported on a best effort basis, and build failure as well as test failures are not blocking.

note on custom/hobby OS support, if your os implements the syscalls used in lib.rs with behavior that is equivalent then this library is likely to work but it's even less of a guarantee.

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.

Dependencies

~2.5MB
~54K SLoC