Nah, found a simple solution. Add:
do_start_cmd_override() { $DAEMON start } do_stop_cmd_override() { $DAEMON stop } to the init script. I'll fix that in the next upload. Cheers, -- Ondřej Surý <ond...@sury.org> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server On Wed, Mar 23, 2016, at 14:29, Ondřej Surý wrote: > On Wed, Mar 23, 2016, at 14:28, Ondřej Surý wrote: > > Hi Amos, > > > > stopping should be done by start-stop-daemon > > So I don't know why it doesn't stop it. Could you try running the init > script "stop" action with `set -x` again? > > And perhaps also restart and status? Thanks. > > O. > -- > Ondřej Surý <ond...@sury.org> > Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server > > > (Couldn't you just switch to systemd? :) I am quite tired of fixing > > shell spaghetti.) > > > > Cheers, > > -- > > Ondřej Surý <ond...@sury.org> > > Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server > > > > On Wed, Mar 23, 2016, at 13:54, Amos Jeffries wrote: > > > Control: found 818747 0.66.4-6 > > > > > > Unfortunately the fix applied is still not working properly. Hard-coding > > > the action that the script performs as "start" only works for starting > > > the daemons, not any other init actions. > > > > > > It can start the daemons now: > > > > > > # ps aux | grep "courier-auth" > > > > > > # /etc/init.d/courier-authdaemon start > > > [ ok ] Starting Courier authentication services: authdaemond. > > > > > > # ps aux | grep courier | grep auth > > > root 17980 0.0 0.4 2220 1184 ? S 00:39 0:00 > > > /usr/sbin/courierlogger -pid=/run/courier/authdaemon/pid -start > > > /usr/lib/courier/courier-authlib/authdaemond > > > root 17981 0.0 1.1 8404 2884 ? S 00:39 0:00 > > > /usr/lib/courier/courier-authlib/authdaemond > > > ... > > > > > > > > > But that is all: > > > > > > # /etc/init.d/courier-authdaemon stop > > > [ ok ] Stopping Courier authentication services: authdaemond. > > > > > > # ps aux | grep "courier-auth" > > > root 17980 0.0 0.4 2220 1184 ? S 00:39 0:00 > > > /usr/sbin/courierlogger -pid=/run/courier/authdaemon/pid -start > > > /usr/lib/courier/courier-authlib/authdaemond > > > root 17981 0.0 1.1 8404 2884 ? S 00:39 0:00 > > > /usr/lib/courier/courier-authlib/authdaemond > > > ... > > > > > > > > > Amos > > > >