cfengine/masterfiles — pull request #193 by kkaempf (2014-04-08 14:52:13+00:00)
Title: If the init process (pid 1) is systemd, set class 'systemd'

This commit checks /proc/1/cmdline on Linux and tries to determine if
its running systemd. Handle SUSE (symlink) and RHEL (arguments) cases
correctly.

On SUSE, /proc/1/cmdline reads
"/sbin/init" which is a symlink to /usr/lib/systemd/systemd.

On RHEL, /proc/1/cmdline reads
"/usr/lib/systemd/systemd --switched-root --system--deserialize23"