1 |
On Friday 27 July 2007, Roy Marples wrote: |
2 |
> On Fri, 2007-07-27 at 11:14 -0400, Mike Frysinger wrote: |
3 |
> > On Friday 27 July 2007, Ali Polatel wrote: |
4 |
> > > Have a look at pkg_setup functions in postfix ebuilds. This can give |
5 |
> > > you an idea about how to do it properly. |
6 |
> > |
7 |
> > that isnt half bad, but still not good. i'd propose you should actually |
8 |
> > be doing: |
9 |
> > /etc/init.d/postgres --quiet status |
10 |
> > and using that to determine the state of things |
11 |
> |
12 |
> Just to note, baselayout-1 is a little wierd like that as in it's not |
13 |
> exactly quiet if init script dependencies need to be updated. |
14 |
|
15 |
... which will be fixed |
16 |
|
17 |
> Also, if the rev-bump relies on a new init script then you're SOL as |
18 |
> it's not etc-updated. |
19 |
|
20 |
the check is in pkg_setup, so this isnt an issue ... but this could easily be |
21 |
true for any checking after the package is installed |
22 |
-mike |