From 02f9498863a64755710c8cb0935dcd73945f1fd4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 2 Mar 2015 17:32:50 +0100 Subject: [PATCH] force not using systemctl if not present - suggested by Ciro for ubuntu --- init.d/functions.sfa | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.d/functions.sfa b/init.d/functions.sfa index 010ab419..038adc9b 100644 --- a/init.d/functions.sfa +++ b/init.d/functions.sfa @@ -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##*/} -- 2.43.0