Re: [Refdb-users] refdbctl do not stop deamon
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mar...@mh...> - 2009-05-11 08:18:30
|
Quoting Wei-Wei Guo <ww...@gm...>: > 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 mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |