[systemd-devel] systemctl status not showing still running processes in inactive .mount unit cgroups (NFS specifically)
Michael Biebl
mbiebl at gmail.com
Mon Jan 12 14:16:46 PST 2015
2015-01-12 22:43 GMT+01:00 Colin Guthrie <gmane at 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
More information about the systemd-devel
mailing list