On Fri, 2007-07-27 at 11:14 -0400, Mike Frysinger wrote: > On Friday 27 July 2007, Ali Polatel wrote: > > Have a look at pkg_setup functions in postfix ebuilds. This can give you > > an idea about how to do it properly. > > that isnt half bad, but still not good. i'd propose you should actually be > doing: > /etc/init.d/postgres --quiet status > and using that to determine the state of things
Just to note, baselayout-1 is a little wierd like that as in it's not exactly quiet if init script dependencies need to be updated. Also, if the rev-bump relies on a new init script then you're SOL as it's not etc-updated. So although what Mike posted is correct, there's also a good chance It Just Won't Work (TM) So that's another argument for no. Thanks Roy -- [EMAIL PROTECTED] mailing list