On Monday 09 January 2006 12:40, Henrik Brix Andersen wrote:
> On Mon, Jan 09, 2006 at 12:32:32PM +0000, Roy Marples wrote:
> > So, the question now must be, do we allow start-stop-daemon to defy
> > calling logic and NOT stop a daemon? How do we know we're not supposed to
> > stop the daemon based on a custom signal? The answer is we can't. So
> > instead of
> >
> > start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid
> >
> > we need to write
> >
> > kill -s HUP $(< /var/run/dnsmasq.pid)
>
> ... or implement a stand-alone --signal (or -s) in start-stop-daemon,
> allowing it to be called like this:
>
> start-stop-daemon --signal HUP -p /var/run/dnsmasq.pid

Which would only work in baselayout-1.12 as the start-stop-daemon binary 
demands either a --start or --stop flag.

I've not tried it, but using --start --signal HUP should work with 
baselayout-1.12 as we don't muck around with --start. It also makes more 
sense in my eyes.

I dunno, call me old fashioned but you use the kill command to send signals to 
daemons.

Either way, the init scripts have to change.

-- 
Roy Marples <[EMAIL PROTECTED]>
Gentoo Linux Developer
-- 
[email protected] mailing list

Reply via email to