<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:14px"><div id="yiv1177906021"><div id="yui_3_16_0_1_1459154155587_45161"><div id="yui_3_16_0_1_1459154155587_45160" style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:14px;"><div id="yiv1177906021yui_3_16_0_1_1459154155587_44051">So here's what worked for me. I simply edited /lib/lsb/init-functions.d/40-systemd  : <br></div><div id="yiv1177906021yui_3_16_0_1_1459154155587_44174"><div id="yui_3_16_0_1_1459154155587_45195"><br></div><div id="yui_3_16_0_1_1459154155587_45194">=============================</div><div id="yui_3_16_0_1_1459154155587_45244" dir="ltr">if [ "$_use_systemctl" = "1" ]; then<br>    # Some init scripts use "set -e" and "set -u", we don't want that           <br>    # here                                                                      <br><br>    set +e<br>    set +u<br><br>    if  [ "x$1" = xstart -o \<br>        "x$1" = xstop -o \<br>        "x$1" = xrestart -o \<br>        "x$1" = xreload -o \<br>        "x$1" = xforce-reload -o \<br>        "x$1" = xstatus ] ; then<br><br>        systemctl_redirect $0 $1</div><div id="yui_3_16_0_1_1459154155587_45328" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45369" dir="ltr">        # Yassine 28/03/2016<br></div><div id="yui_3_16_0_1_1459154155587_45312" dir="ltr">        # Should this be a return instead ?</div><div id="yui_3_16_0_1_1459154155587_45361" dir="ltr">        # exit $?                                                                <br>    fi<br>fi<br></div></div><div dir="ltr" id="yiv1177906021yui_3_16_0_1_1459154155587_44050"><div id="yiv1177906021yui_3_16_0_1_1459154155587_44161">=============================</div><div id="yui_3_16_0_1_1459154155587_45362"><br></div><div id="yui_3_16_0_1_1459154155587_45360">This file is sourced from this line in /etc/init.d/saslauthd <br></div><div id="yui_3_16_0_1_1459154155587_45363"><br></div><div id="yui_3_16_0_1_1459154155587_45443" dir="ltr">=============================</div><div id="yui_3_16_0_1_1459154155587_45364" dir="ltr">. /lib/lsb/init-functions<br>=============================<br></div><div dir="ltr" id="yui_3_16_0_1_1459154155587_45365"><br></div><div id="yui_3_16_0_1_1459154155587_45442" dir="ltr">and causes that script to be run from systemd instead of normal execution.</div><div id="yui_3_16_0_1_1459154155587_45441" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45437" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45499" dir="ltr">========================================================<br>    # Redirect SysV init scripts when executed by the user<br>    if [ $PPID -ne 1 ] && [ -z "${init:-}" ] && [ -z "${_SYSTEMCTL_SKIP_REDIRECT:-}" \<br>]; then<br>        case $(readlink -f "$0") in<br>            /etc/init.d/*)<br>                _use_systemctl=1<br>                # Some services can't reload through the .service file,<br>                # but can through the init script.<br>                prog=${0##*/}<br>                service="${prog%.sh}.service"<br>                if [ "$(systemctl -p CanReload show $service 2>/dev/null)" = "CanRelo\<br>ad=no" ] && [ "${1:-}" = "reload" ]; then<br>                    _use_systemctl=0<br>                fi<br>                ;;<br>        esac<br>    else<br>        export _SYSTEMCTL_SKIP_REDIRECT="true"<br>    fi<br>========================================================<br></div><div id="yui_3_16_0_1_1459154155587_45506" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45539" dir="ltr">So if /etc/init.d/ is part of "$0", _use_systemctl will be set to 1, which will cause the previous if test to pass and hijack all the start/stop/status commands AND exit right away.</div><div id="yui_3_16_0_1_1459154155587_45579" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45580" dir="ltr"><br></div><div id="yui_3_16_0_1_1459154155587_45560" dir="ltr">Yassine.<br></div><div id="yui_3_16_0_1_1459154155587_45561" dir="ltr"><br></div><br><div id="yui_3_16_0_1_1459154155587_45366"><br></div></div></div></div></div></div></body></html>