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 1EwNV2-000512-5a for garchives@archives.gentoo.org; Tue, 10 Jan 2006 17:41:36 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0AHdFxg010030; Tue, 10 Jan 2006 17:39:15 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 k0AHXpvo028031 for ; Tue, 10 Jan 2006 17:33:51 GMT Received: from uberlaptop.development.ltl (logos [195.2.133.104]) by mail.marples.name (Postfix) with ESMTP id B49DC90678A8 for ; Tue, 10 Jan 2006 17:33:51 +0000 (GMT) From: Roy Marples Organization: Gentoo To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] init scripts and custom signals Date: Tue, 10 Jan 2006 17:33:46 +0000 User-Agent: KMail/1.9 References: <200601091232.32522.uberlord@gentoo.org> <200601090922.59497.vapier@gentoo.org> In-Reply-To: <200601090922.59497.vapier@gentoo.org> 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: multipart/signed; boundary="nextPart2060818.8frbqVpA8S"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601101733.49951.uberlord@gentoo.org> X-Archives-Salt: d5ef6272-5276-40c1-933a-4f06f1b4c6e7 X-Archives-Hash: 21887e2d3f8be0bf5c15a03f19ebee26 --nextPart2060818.8frbqVpA8S Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 se= nd=20 HUP's, most of them also use the --oknodo flag. Using this flag enables the= =20 desired behaviour in all baselayout versions. This makes sense as the=20 =2D-oknodo flag has been in start-stop-daemon for a long time whereas --sig= nal=20 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=20 the --oknodo flag. So in summary start-stop-daemon --stop --signal 1 -- exec /usr/sbin/acpid will stop acpid=20 start-stop-daemon --stop --oknodo --signal 1 -- exec /usr/sbin/acpid will just send signal 1 (HUP) Thanks =2D-=20 Roy Marples Gentoo Linux Developer --nextPart2060818.8frbqVpA8S Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDw+/9EbVyYKaZ/NERAiY9AJ9mNhbo4VvyMn7F7rGAfImki/sCBwCgmZ2H wdjf4Xtblimut0GQxUZqO5o= =AyqP -----END PGP SIGNATURE----- --nextPart2060818.8frbqVpA8S-- -- gentoo-dev@gentoo.org mailing list