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 1IEQKd-0005jF-7G for garchives@archives.gentoo.org; Fri, 27 Jul 2007 13:58:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6RDuSLN000428; Fri, 27 Jul 2007 13:56:28 GMT Received: from mail-smtp2.ode.cdnet.dk (mail-smtp2.ode.cdnet.dk [85.218.129.5]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6RDlXmg018762 for ; Fri, 27 Jul 2007 13:47:33 GMT Received: from localhost (localhost [127.0.0.1]) by mail-smtp2.ode.cdnet.dk (Postfix) with ESMTP id 5FC6A8A01E for ; Fri, 27 Jul 2007 15:48:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at cdnet.dk Received: from mail-smtp2.ode.cdnet.dk ([127.0.0.1]) by localhost (mail-smtp2.ode.cdnet.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wz2Oo0UGYJwK for ; Fri, 27 Jul 2007 15:48:16 +0200 (CEST) Received: from [192.168.0.2] (unknown [85.218.191.254]) by mail-smtp2.ode.cdnet.dk (Postfix) with ESMTP id 29ED68A02F for ; Fri, 27 Jul 2007 15:48:16 +0200 (CEST) Subject: Re: [gentoo-user] How should I kill a daemon from an ebuild file? From: Jules Colding To: gentoo-user@lists.gentoo.org In-Reply-To: <1185543924.23477.13.camel@blackwidow.nbk> References: <1185540896.16094.5.camel@omc-2.omesc.com> <1185543924.23477.13.camel@blackwidow.nbk> Content-Type: text/plain Date: Fri, 27 Jul 2007 15:47:31 +0200 Message-Id: <1185544051.16094.20.camel@omc-2.omesc.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 8949dafd-944f-45f6-b0ed-813b87e98483 X-Archives-Hash: 0081d820be5844338aace59491bcb67a On Fri, 2007-07-27 at 08:45 -0500, Albert Hopkins wrote: > On Fri, 2007-07-27 at 14:54 +0200, Jules Colding wrote: > > Hi, > > > > 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. > > > > Is there a clean and recommended way of doing this in an ebuild or > > should I just use killall in pkg_postinst()? > > You might wanna check the -dev mailing list to be sure, but I'm almost > certain that they'll tell you this is a no-no. Generally speaking > ebuilds should build/install packages and not affect the system in ways > like starting/killing processes. A simple ELOG message is the preferred > method. > > Nevertheless, the -dev list is probably the better forum to answer your > question. OK - thanks, jules -- gentoo-user@gentoo.org mailing list