View previous topic :: View next topic |
Author |
Message |
zecodela n00b
Joined: 30 May 2004 Posts: 28
|
Posted: Sat Oct 23, 2004 10:01 am Post subject: daemon pid error! ( |
|
|
hi,
i used noip2 to start my dynamic dns stuffs. i compiled the binary and it work fine! however, i found the startup script cant return a correct pid. so, i cant stop the daemon by /etc/init.d/noip2 stop.
it is interesting! since the return pid is always 1 less than the correct pid. so, i think problem may come from the script.
here is the script. pls check anything wrong with it!
DAEMON=/usr/local/bin/noip2
NAME=noip2
test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting dynamic address update: "
start-stop-daemon --start --pidfile /var/run/noip2.pid \
--make-pidfile --exec $DAEMON
echo "noip2."
;;
stop)
echo -n "Shutting down dynamic address update:"
start-stop-daemon --stop --pidfile /var/run/noip2.pid \
--oknodo --retry 30 --exec $DAEMON
echo "noip2."
;;
restart)
echo -n "Restarting dynamic address update: "
start-stop-daemon --stop --pidfile /var/run/noip2.pid \
--oknodo --retry 30 --exec $DAEMON
start-stop-daemon --start --pidfile /var/run/noip2.pid \
--exec $DAEMON
echo "noip2."
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
any hints of the problem? anything wrong on my script?
thanks,
jim |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20584
|
Posted: Sat Oct 23, 2004 5:54 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
SPW Guru
Joined: 22 Jul 2003 Posts: 318 Location: Lëtzebuerg
|
Posted: Thu Nov 11, 2004 3:20 pm Post subject: |
|
|
That's interesting indeed! I also get something as "start-stop-daemon: failed to kill process" when I shutdown. And now I realized that this error message is linked to noip2. Unfortunately I don't know what I can do about it. |
|
Back to top |
|
|
|