Gentoo Archives: gentoo-user

From: Jules Colding <colding@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How should I kill a daemon from an ebuild file?
Date: Fri, 27 Jul 2007 13:58:15
Message-Id: 1185544051.16094.20.camel@omc-2.omesc.com
In Reply to: Re: [gentoo-user] How should I kill a daemon from an ebuild file? by Albert Hopkins
1 On Fri, 2007-07-27 at 08:45 -0500, Albert Hopkins wrote:
2 > On Fri, 2007-07-27 at 14:54 +0200, Jules Colding wrote:
3 > > Hi,
4 > >
5 > > I have an ebuild (see below) for a small keyring daemon. I would like
6 > > to
7 > > kill the daemon process, if it is running, whenever it is emerged
8 > > again
9 > > to ensure that no running daemon process refers to an old install.
10 > >
11 > > Is there a clean and recommended way of doing this in an ebuild or
12 > > should I just use killall in pkg_postinst()?
13 >
14 > You might wanna check the -dev mailing list to be sure, but I'm almost
15 > certain that they'll tell you this is a no-no. Generally speaking
16 > ebuilds should build/install packages and not affect the system in ways
17 > like starting/killing processes. A simple ELOG message is the preferred
18 > method.
19 >
20 > Nevertheless, the -dev list is probably the better forum to answer your
21 > question.
22
23 OK - thanks,
24 jules
25
26
27 --
28 gentoo-user@g.o mailing list