On Monday 09 January 2006 14:22, Mike Frysinger wrote: > On Monday 09 January 2006 07:32, Roy Marples wrote: > > It's been brought to my attention that dnsmasq and acpid use > > start-stop-daemon to send custom signals such as HUP. While this works > > with baselayout-1.11, it does not work with baselayout-1.12 > > is this due to changes we are making in Gentoo ? i.e. we've just been > importing ssd from Debian for the most part and i dont really think we > should be diverging in behavior ... > -mike
After looking at plently of Debian scripts that use start-stop-daemon to send HUP's, most of them also use the --oknodo flag. Using this flag enables the desired behaviour in all baselayout versions. This makes sense as the --oknodo flag has been in start-stop-daemon for a long time whereas --signal was tacked on as an after though (in my eyes looking at its Debian history) So if you just want to send a daemon a signal and keep it running you must use the --oknodo flag. So in summary start-stop-daemon --stop --signal 1 -- exec /usr/sbin/acpid will stop acpid start-stop-daemon --stop --oknodo --signal 1 -- exec /usr/sbin/acpid will just send signal 1 (HUP) Thanks -- Roy Marples <[EMAIL PROTECTED]> Gentoo Linux Developer
pgpf6R48fuGTl.pgp
Description: PGP signature
