Re: [arch-general] get pid of daemon in init script

2008-02-08 Thread Sentinel
yes you are right. [EMAIL PROTECTED]:/home/sentinel# /etc/rc.d/proftpd stop :: Stopping ProFTPd Server [DONE] [EMAIL PROTECTED]:/home/sentinel# PID=`pidof -o %PPID -x /usr/sbin/proftpd` [EMAIL PROTECTED]:/home/sentinel# echo $PID [EMAIL PROTECTED]:

Re: [arch-general] get pid of daemon in init script

2008-02-08 Thread Travis Willard
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 PROTECT

Re: [arch-general] get pid of daemon in init script

2008-02-08 Thread Sentinel
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 PROTE

Re: [arch-general] get pid of daemon in init script

2008-02-08 Thread Dan McGee
On Feb 8, 2008 1:27 PM, Michael Krauss <[EMAIL PROTECTED]> wrote: > Hi to .* > > I must write a rc init script for a server I am packaging. > Therefor I have copied the init script of cups. > Now I recognized that both pid files, cups.pid and my own, in /var/run > are empty. > > Further investigati

[arch-general] get pid of daemon in init script

2008-02-08 Thread Michael Krauss
Hi to .* I must write a rc init script for a server I am packaging. Therefor I have copied the init script of cups. Now I recognized that both pid files, cups.pid and my own, in /var/run are empty. Further investigations have shown that "pidof -o %PPID -x /usr/bin/cdvserver" returns nothing in