pub(crate) fn running_in_systemd() -> bool
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.