On Mon, Dec 15, 2003, Birger Kr�gelin wrote:

> How do I start/stop in rc.dracd in a platform independent way, if
> the daemon doesn't write a pidfile?
> Do I have to "case/esac" with ps -e/ps -ax or is there a rpmtool/shtool/xxxtool
> to start a process and write a pidfile?

You have two options (both were done by OpenPKG in the past): either
add pid file writing to the application (usually very easy, see
qpopper.spec) or you have use "rpmtool signal". The first one is
preferred because has no side-effects. The second one is more risky,
especially if there are multiple OpenPKG instances with the same package
installed.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to