Re: refdbctl do not stop deamon

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

> There is only one line in /var/run/refdbd.pid:
>
> 2908
>
> It is the PID of refdbd.
>
> $ ps -C refdbd
>   PID TTY          TIME CMD
>  2908 ?        00:00:00 refdbd
>
>
>> Please also check the setting of the "pidfile" variable in your   
>> refdbdrc. It should have the value "/var/run/refdbd.pid" as well.
>>
>
> Here is the 'pidfile' line in refdbdrc:
>
> pidfile         /var/run/refdbd.pid
>
>

Thanks for running these tests. Both look ok, so I'm entirely clueless  
why the script fails on your box. refdbctl uses two shell commands to  
isolate the process ID from the ps output and from the PID file. Maybe  
one of these commands fails on your box. Could you please test those  
shell commands manually? You'll have to replace two variables with  
their real values, like this (using the values "2908" as the PID and  
"/var/run/refdbd.pid" as the full path of the PID file in this example):

cat /var/run/refdbd.pid|sed 's/^ *\([0-9]*\).*/\1/'

and

ps ax | grep -i "^ *2908.*[r]efdbd" | sed 's/^ *\([0-9]*\).*/\1/'

Both commands should return the process ID, i.e. "2908" in this example.

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