Hi Philipp, On Saturday 22 March 2008 18:05, Jan Wagner wrote: > On Saturday 22 March 2008 12:53, you wrote: > > Then please depend on psmisc. Your method is *not* reliable. It > > depends on the PID sequence number. You are using a shell script and > > invoke `ps aux | grep $DAEMON' which means that $DAEMON will appear > > as part of the cmdline of the grep invokation. If the $DAEMON PID > > is lower than the grep it will be written to the pid file, otherwise > > the PID of the grep process will be written. > > yes ... you are true, but /bin/pidof from sysvinit-utils (which is required > and needs no additional depends) should solve this issue, shouldn't it? did I maybe miss your response somewhere? With kind regards, Jan. -- Never write mail to <waja@spamfalle.info>, you have been warned! -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++ ------END GEEK CODE BLOCK------
Attachment:
pgptXF4rKINPI.pgp
Description: PGP signature