daemon-detect 0.1.0

Detect whether the current process runs as an OS daemon (launchd, systemd, Windows service) and derive its service label and scope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![doc = include_str!("../README.md")]

mod identity;
mod markers;
mod platform;
mod state;

#[cfg(test)]
mod tests;

pub use identity::ServiceIdentity;
pub use markers::DaemonMarkers;
pub use platform::systemd_available;
pub use state::{
    DaemonServiceMode,
    DaemonState,
};