diff options
author | Steve Dickson <steved@redhat.com> | 2015-01-14 10:27:49 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-01-15 05:46:11 -0500 |
commit | fd88e113714a099e01d1fb34ade6b858904d664d (patch) | |
tree | 9b89e8bc5008eae98c0105eaaf00b97088f1d5a2 | |
parent | 88855c72ae341f545e9b669568c7a6bb3e257e17 (diff) | |
download | nfs-utils-fd88e113714a099e01d1fb34ade6b858904d664d.tar.gz nfs-utils-fd88e113714a099e01d1fb34ade6b858904d664d.tar.xz nfs-utils-fd88e113714a099e01d1fb34ade6b858904d664d.zip |
start-statd: Use the canonical to check if systemd is running.
Use the approved way, define in
http://www.freedesktop.org/software/systemd/man/sd_booted.html
to check if systemd is installed and running
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-x | utils/statd/start-statd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/statd/start-statd b/utils/statd/start-statd index ec9383b..14369e5 100755 --- a/utils/statd/start-statd +++ b/utils/statd/start-statd @@ -7,7 +7,7 @@ PATH="/sbin:/usr/sbin:/bin:/usr/bin" # First try systemd if it's installed. -if systemctl --help >/dev/null 2>&1; then +if [ -d /run/systemd/system ]; then # Quit only if the call worked. systemctl start rpc-statd.service && exit fi |