On Feb 8, 2008 3:06 PM, Sentinel <[EMAIL PROTECTED]> wrote: > Hi! > > It works perfectly (at least for me), just you have to ensure, that you > call it with appropriate rights while testing: > my testing: > [EMAIL PROTECTED]:~$ su > Password: > with power comes great responsibility > [EMAIL PROTECTED]:/home/sentinel# PID=`pidof -o %PPID -x /usr/sbin/proftpd` > [EMAIL PROTECTED]:/home/sentinel# echo $PID > 7469 > [EMAIL PROTECTED]:/home/sentinel# [ -z "$PID" ] && echo "pid is empty" > [EMAIL PROTECTED]:/home/sentinel# > > Tom
That is because you already have /usr/sbin/proftpd running. In the case of running the start initscript, the PID is sampled before the application ever starts, and hence will return no PID, as Dan already explained.