aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/functions')
-rw-r--r--rc.d/init.d/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 0ba07b08..8e5800b6 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -47,6 +47,10 @@ systemctl_redirect () {
options="--ignore-dependencies"
fi
+ if systemctl show -p LoadState "$prog.service" | grep -q 'not-found' ; then
+ action $"Reloading systemd: " /bin/systemctl daemon-reload
+ fi
+
action "$s" /bin/systemctl $options $command "$prog.service"
}