Re: [Refdb-users] refdbctl do not stop deamon
Status: Beta
Brought to you by:
mhoenicka
|
From: Wei-Wei G. <ww...@gm...> - 2009-05-11 08:42:37
|
Markus Hoenicka 写道: > 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. > 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 Best wishes, Wei-Wei |