https://github.com/xadaemon/daemonize-me
Rust library to ease the task of creating daemons
https://github.com/xadaemon/daemonize-me
daemon daemonize linux rust rust-crate rust-library unix
Last synced: 26 days ago
JSON representation
Rust library to ease the task of creating daemons
- Host: GitHub
- URL: https://github.com/xadaemon/daemonize-me
- Owner: xadaemon
- License: apache-2.0
- Created: 2020-06-24T23:59:07.000Z (almost 6 years ago)
- Default Branch: trunk
- Last Pushed: 2025-05-21T20:40:52.000Z (11 months ago)
- Last Synced: 2026-01-11T18:40:20.103Z (3 months ago)
- Topics: daemon, daemonize, linux, rust, rust-crate, rust-library, unix
- Language: Rust
- Homepage:
- Size: 124 KB
- Stars: 53
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# daemonize-me [](https://github.com/CardinalBytes/daemonize-me/actions) [](https://crates.io/crates/daemonize-me) [](https://crates.io/crates/daemonize-me) [](https://github.com/CardinalBytes/daemonize-me/blob/master/LICENSE)
Rust library to ease the task of creating daemons, I have drawn heavy inspiration from [Daemonize by knsd](https://github.com/knsd/daemonize).
# 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
```toml
daemonize-me = "2.0"
```
Then look at [hooks.rs](examples/hooks.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
* Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* BSD 3 Clause License
# 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.