Re: refdbctl do not stop deamon

Markus Hoenicka <[email protected]> Mon, 11 May 2009 11:13:25 +0200
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Quoting Wei-Wei Guo <[email protected]>:

> Is this what you mean?
>
> $ ls /var/run/refdb*
> /var/run/refdbd.pid
>
> $ ps -C refdbd
>   PID TTY          TIME CMD
>  2904 ?        00:00:00 refdbd
>
> $ cat /var/run/refdbd.pid|sed 's/^ *\([0-9]*\).*/\1/'
> 2904
>
> $ ps ax | grep -i "^ *2904.*[r]efdbd" | sed 's/^ *\([0-9]*\).*/ 1/'
> 2904
>

Thanks again. Both commands work as expected. Therefore the script  
should work as well. Can you still reproduce the script failure? Also,  
which shell did you use for these tests, i.e. what is your login  
shell? If it is not bash, you may try repeating the above tests using  
bash: type "bash" at your prompt, repeat the above tests, and type  
exit again to return to your login shell. If that should give  
different results, try editing the first line of refdbctl (something  
like "#!/usr/bin/bash") and make it point to your login shell.

regards,
Markus



-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com