running_in_systemd

Function running_in_systemd 

Source
pub(crate) fn running_in_systemd() -> bool
Expand description

Checks if the current process is (apparently at least) running under systemd. We use this in various places to e.g. log to the journal instead of printing to stdout.