Gentoo Archives: gentoo-dev

From: Henrik Brix Andersen <brix@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] init scripts and custom signals
Date: Mon, 09 Jan 2006 12:43:16
Message-Id: 20060109124032.GA30466@osgiliath.brixandersen.dk
In Reply to: [gentoo-dev] init scripts and custom signals by Roy Marples
1 On Mon, Jan 09, 2006 at 12:32:32PM +0000, Roy Marples wrote:
2 > So, the question now must be, do we allow start-stop-daemon to defy calling
3 > logic and NOT stop a daemon? How do we know we're not supposed to stop the
4 > daemon based on a custom signal? The answer is we can't. So instead of
5 >
6 > start-stop-daemon --stop -s HUP -p /var/run/dnsmasq.pid
7 >
8 > we need to write
9 >
10 > kill -s HUP $(< /var/run/dnsmasq.pid)
11
12 ... or implement a stand-alone --signal (or -s) in start-stop-daemon,
13 allowing it to be called like this:
14
15 start-stop-daemon --signal HUP -p /var/run/dnsmasq.pid
16
17 Regards,
18 Brix
19 --
20 Henrik Brix Andersen <brix@g.o>
21 Gentoo Metadistribution | Mobile computing herd

Replies

Subject Author
Re: [gentoo-dev] init scripts and custom signals Roy Marples <uberlord@g.o>