Skip to main content

is_systemd_mode

Function is_systemd_mode 

Source
pub fn is_systemd_mode() -> bool
Expand description

Whether the process was started by systemd, sampled once.

Both SYSTEMD_EXEC_PID and JOURNAL_STREAM have to be present, which the service manager sets for a unit it launched itself.