[Pkg-sysvinit-devel] Bug#807311: init-d-script: do_reload_sigusr1 sends sighup, not sigusr1

Petter Reinholdtsen pere at hungry.com
Tue Dec 20 07:49:33 UTC 2016


[Robbie Harwood]
> It's pretty common for SIGHUP to reload config as well as SIGUSR1.
>
> So, my suggestion would be define a new way of doing this, file bugs
> with patches against anyone using do_reload_sigusr1, and then remove
> do_reload_sigusr1.
>
> One way that might be nice is to make a function do_reload_signal, which
> would send $SIGNAL (or $RELOAD_SIGNAL) as an argument to
> start-stop-daemon.

I did not quite understand the problem.  Can you explain in a bit more
detail?

Today scripts wanting to use SIGHUP to reload can implement do_reload()
similar to the way do_reload_sigusr1() is implemented.  Those wanting
SIGUSR1 can use do_reload_sigusr1() by providing it as an alias for
do_reload().  What more is needed?

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list