There's a small niggle in the proposed change for trusty; the 'clean' exit handling will override the exit code from the init script, resulting in the return code being 0 all of the time; dropping the exit from within 'clean' will resolve this.
I've uploaded Louis' fix with this small improvement to xenial
There's a small niggle in the proposed change for trusty; the 'clean' exit handling will override the exit code from the init script, resulting in the return code being 0 all of the time; dropping the exit from within 'clean' will resolve this.
I've uploaded Louis' fix with this small improvement to xenial