1 |
On Monday 09 January 2006 14:22, Mike Frysinger wrote: |
2 |
> On Monday 09 January 2006 07:32, Roy Marples wrote: |
3 |
> > It's been brought to my attention that dnsmasq and acpid use |
4 |
> > start-stop-daemon to send custom signals such as HUP. While this works |
5 |
> > with baselayout-1.11, it does not work with baselayout-1.12 |
6 |
> |
7 |
> is this due to changes we are making in Gentoo ? i.e. we've just been |
8 |
> importing ssd from Debian for the most part and i dont really think we |
9 |
> should be diverging in behavior ... |
10 |
> -mike |
11 |
|
12 |
After looking at plently of Debian scripts that use start-stop-daemon to send |
13 |
HUP's, most of them also use the --oknodo flag. Using this flag enables the |
14 |
desired behaviour in all baselayout versions. This makes sense as the |
15 |
--oknodo flag has been in start-stop-daemon for a long time whereas --signal |
16 |
was tacked on as an after though (in my eyes looking at its Debian history) |
17 |
|
18 |
So if you just want to send a daemon a signal and keep it running you must use |
19 |
the --oknodo flag. |
20 |
|
21 |
So in summary |
22 |
|
23 |
start-stop-daemon --stop --signal 1 -- exec /usr/sbin/acpid |
24 |
will stop acpid |
25 |
|
26 |
start-stop-daemon --stop --oknodo --signal 1 -- exec /usr/sbin/acpid |
27 |
will just send signal 1 (HUP) |
28 |
|
29 |
Thanks |
30 |
|
31 |
-- |
32 |
Roy Marples <uberlord@g.o> |
33 |
Gentoo Linux Developer |