[systemd-devel] recommended way to detect systemd?

Manuel Reimer Manuel.Spam at nurfuerspam.de
Sat Dec 29 04:40:59 PST 2012


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?

Thanks in advance.

Yours

Manuel



More information about the systemd-devel mailing list