summaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/config/preun
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/facemgr/config/preun')
-rwxr-xr-xctrl/facemgr/config/preun4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrl/facemgr/config/preun b/ctrl/facemgr/config/preun
index b5c486ea5..8c0eadf0d 100755
--- a/ctrl/facemgr/config/preun
+++ b/ctrl/facemgr/config/preun
@@ -1,3 +1,5 @@
#!/bin/bash
-systemctl disable facemgr
+if pidof systemd; then
+ systemctl disable facemgr
+fi