2015-01-12 22:43 GMT+01:00 Colin Guthrie <gm...@colin.guthr.ie>: > But FWIW, your check for whether systemctl is installed via calling > "systemctl --help" is IMO not very neat. > > If you're using bash here anyway, you might as well just do a: > > if [ -d /sys/fs/cgroup/systemd ]; then > > type check or if you want to be super sure you could do: > > if mountpoint -q /sys/fs/cgroup/systemd; then >
The canonical way to check if systemd is the active PID 1 is [1] test -d /run/systemd/system [1] http://www.freedesktop.org/software/systemd/man/sd_booted.html _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel