public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jules Colding <colding@omesc.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How should I kill a daemon from an ebuild file?
Date: Fri, 27 Jul 2007 15:47:31 +0200	[thread overview]
Message-ID: <1185544051.16094.20.camel@omc-2.omesc.com> (raw)
In-Reply-To: <1185543924.23477.13.camel@blackwidow.nbk>

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



      reply	other threads:[~2007-07-27 13:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 12:54 [gentoo-user] How should I kill a daemon from an ebuild file? Jules Colding
2007-07-27 13:45 ` Albert Hopkins
2007-07-27 13:47   ` Jules Colding [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185544051.16094.20.camel@omc-2.omesc.com \
    --to=colding@omesc.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox