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.67) (envelope-from ) id 1IER2o-0007LP-Rb for garchives@archives.gentoo.org; Fri, 27 Jul 2007 14:43:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6REh07n018953; Fri, 27 Jul 2007 14:43:00 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6REeZHR015889 for ; Fri, 27 Jul 2007 14:40:35 GMT Received: from mars (unknown [160.75.122.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C33D3653A1 for ; Fri, 27 Jul 2007 14:40:33 +0000 (UTC) Date: Fri, 27 Jul 2007 17:40:22 +0300 From: Ali Polatel To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: How should I kill a daemon from an ebuild file? Message-ID: <20070727144022.GA3633@mars.solar> References: <1185544333.16094.28.camel@omc-2.omesc.com> 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; micalg=SHA1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <1185544333.16094.28.camel@omc-2.omesc.com> X-PGP-Fingerprint: DBC2 2BC7 95B8 6D6C 8BC3 37EC CA00 CFC1 8E72 4EDC X-GPG-Key: gpg --recv-keys --keyserver subkeys.pgp.net 8E724EDC X-Editor: VIM - Vi IMproved 7.1 User-Agent: Mutt/1.5.15 (Linux 2.6.22-gentoo-r1) X-Archives-Salt: fc06aec2-eaf3-4dce-a46b-8cd5c6652fa0 X-Archives-Hash: 457ab40eb2c750b8af4364af1c3d9ac0 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jules Colding yazm=C4=B1=C5=9F: > Hi, >=20 > I have an ebuild (see below) for a small keyring daemon. I would like to > kill the daemon process, if it is running, whenever it is emerged again > to ensure that no running daemon process refers to an old install. >=20 > Is there a clean and recommended way of doing this in an ebuild or > should I just use killall in pkg_postinst()? >=20 > Or is this ultimately a big no-no?? >=20 Have a look at pkg_setup functions in postfix ebuilds. This can give you an idea about how to do it properly. --=20 ali polatel (hawking) --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux) iD8DBQBGqgPTygDPwY5yTtwRAv47AJ9/nBNdtSScyaRGfePTbWwZUh0+lQCgjCKC Md0C+L/ptJ1u0+nWiQ4Kxi8= =NqGB -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- -- gentoo-dev@gentoo.org mailing list