1 |
On Monday 09 January 2006 12:40, Henrik Brix Andersen wrote: |
2 |
> On Mon, Jan 09, 2006 at 12:32:32PM +0000, Roy Marples wrote: |
3 |
> > So, the question now must be, do we allow start-stop-daemon to defy |
4 |
> > calling logic and NOT stop a daemon? How do we know we're not supposed to |
5 |
> > stop the daemon based on a custom signal? The answer is we can't. So |
6 |
> > instead of |
7 |
> > |
8 |
> > start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid |
9 |
> > |
10 |
> > we need to write |
11 |
> > |
12 |
> > kill -s HUP $(< /var/run/dnsmasq.pid) |
13 |
> |
14 |
> ... or implement a stand-alone --signal (or -s) in start-stop-daemon, |
15 |
> allowing it to be called like this: |
16 |
> |
17 |
> start-stop-daemon --signal HUP -p /var/run/dnsmasq.pid |
18 |
|
19 |
Which would only work in baselayout-1.12 as the start-stop-daemon binary |
20 |
demands either a --start or --stop flag. |
21 |
|
22 |
I've not tried it, but using --start --signal HUP should work with |
23 |
baselayout-1.12 as we don't muck around with --start. It also makes more |
24 |
sense in my eyes. |
25 |
|
26 |
I dunno, call me old fashioned but you use the kill command to send signals to |
27 |
daemons. |
28 |
|
29 |
Either way, the init scripts have to change. |
30 |
|
31 |
-- |
32 |
Roy Marples <uberlord@g.o> |
33 |
Gentoo Linux Developer |
34 |
-- |
35 |
gentoo-dev@g.o mailing list |