summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xutils/statd/start-statd2
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