From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EvwVN-0001Mc-6J for garchives@archives.gentoo.org; Mon, 09 Jan 2006 12:52:09 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k09CpQ3A015777; Mon, 9 Jan 2006 12:51:26 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k09CnZTZ004887 for ; Mon, 9 Jan 2006 12:49:35 GMT Received: from uberlaptop.development.ltl (logos [195.2.133.104]) by mail.marples.name (Postfix) with ESMTP id 84AA290678AA for ; Mon, 9 Jan 2006 12:49:35 +0000 (GMT) From: Roy Marples To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] init scripts and custom signals Date: Mon, 9 Jan 2006 12:49:34 +0000 User-Agent: KMail/1.9 References: <200601091232.32522.uberlord@gentoo.org> <20060109124032.GA30466@osgiliath.brixandersen.dk> In-Reply-To: <20060109124032.GA30466@osgiliath.brixandersen.dk> Organization: Gentoo Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601091249.34184.uberlord@gentoo.org> X-Archives-Salt: d9a50aef-6539-4b1f-bfdf-3b3b6b474f23 X-Archives-Hash: c53315d7b726badf57f095e9d012108e 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 Gentoo Linux Developer -- gentoo-dev@gentoo.org mailing list