Re: [gentoo-user] How should I kill a daemon from an ebuild file?
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.
--
Albert W. Hopkins
--
gentoo-user@gentoo.org mailing list
Received on Fri Jul 27 09:46:07 2007
This archive was generated by hypermail 2.1.8
: Wed Aug 29 2007 - 14:30:05 EDT
|