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