Rely on /proc/1/comm to identify running systemd
authorMichael Prokop <mika@grml.org>
Fri, 13 Jan 2017 12:36:20 +0000 (13:36 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 13 Jan 2017 12:36:20 +0000 (13:36 +0100)
commit14ce31b3b73c1ad6b448420d49ebb9d78c70d890
tree46eb73d331e01c49622df0eed4969cbbaca50c96
parent348b546fca905e5c591faeb1fb0d636918f9b0f1
Rely on /proc/1/comm to identify running systemd

/proc/[pid]/comm is available since Linux 2.6.33 so
we should be able to rely on that.

Inside /proc/1/cmdline might end up additional boot options,
e.g. when booting with "nocolor" boot option it ends up as
"/sbin/initnocolor" and then our check breaks.
autoconfig.functions