[systemd-devel] recommended way to detect systemd?
Andrey Borzenkov
arvidjaar at gmail.com
Sat Dec 29 05:23:53 PST 2012
В Sat, 29 Dec 2012 13:40:59 +0100
Manuel Reimer <Manuel.Spam at nurfuerspam.de> пишет:
> Hello,
>
> I need a reliable way to find out if a system, where my software runs on, uses
> systemd.
>
> My first thought:
>
> $ cat /proc/1/comm
> systemd
>
> Is this a reliable way that will also work in the next few releases of systemd,
> or should I use something different?
>
Widely used check is
if /bin/mountpoint -q /sys/fs/cgroup/systemd ; then
...
fi
More information about the systemd-devel
mailing list