force not using systemctl if not present - suggested by Ciro for ubuntu
Thierry Parmentelat [Mon, 2 Mar 2015 16:32:50 +0000 (17:32 +0100)]
init.d/functions.sfa

index 010ab41..038adc9 100644 (file)
@@ -32,6 +32,10 @@ if [ $PPID -ne 1 -a -z "$SYSTEMCTL_SKIP_REDIRECT" ] && \
        esac
 fi
 
+# ubuntu does not have /bin/systemctl
+[ -f /bin/systemctl ] || _use_systemctl=0
+
+
 systemctl_redirect () {
        local s
        local prog=${1##*/}