From fd88e113714a099e01d1fb34ade6b858904d664d Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 14 Jan 2015 10:27:49 -0500 Subject: 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 --- utils/statd/start-statd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit