From: Thierry Parmentelat Date: Mon, 2 Mar 2015 16:32:50 +0000 (+0100) Subject: force not using systemctl if not present - suggested by Ciro for ubuntu X-Git-Tag: sfa-3.1-14~9 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=02f9498863a64755710c8cb0935dcd73945f1fd4 force not using systemctl if not present - suggested by Ciro for ubuntu --- 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##*/}