Gentoo Archives: gentoo-dev

From: Roy Marples <uberlord@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: How should I kill a daemon from an ebuild file?
Date: Fri, 27 Jul 2007 16:37:36
Message-Id: 1185554023.1085.2.camel@uberlaptop.marples.name
In Reply to: Re: [gentoo-dev] Re: How should I kill a daemon from an ebuild file? by Mike Frysinger
1 On Fri, 2007-07-27 at 11:14 -0400, Mike Frysinger wrote:
2 > On Friday 27 July 2007, Ali Polatel wrote:
3 > > Have a look at pkg_setup functions in postfix ebuilds. This can give you
4 > > an idea about how to do it properly.
5 >
6 > that isnt half bad, but still not good. i'd propose you should actually be
7 > doing:
8 > /etc/init.d/postgres --quiet status
9 > and using that to determine the state of things
10
11 Just to note, baselayout-1 is a little wierd like that as in it's not
12 exactly quiet if init script dependencies need to be updated.
13
14 Also, if the rev-bump relies on a new init script then you're SOL as
15 it's not etc-updated.
16
17 So although what Mike posted is correct, there's also a good chance It
18 Just Won't Work (TM)
19
20 So that's another argument for no.
21
22 Thanks
23
24 Roy
25
26 --
27 gentoo-dev@g.o mailing list

Replies