Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-23-2004, 08:07 AM   #1
LQ Newbie
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
daemon pid error!

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!


test -x $DAEMON || exit 0

case "$1" in
echo -n "Starting dynamic address update: "
start-stop-daemon --start --pidfile /var/run/ \
--make-pidfile --exec $DAEMON
echo "noip2."
echo -n "Shutting down dynamic address update:"
start-stop-daemon --stop --pidfile /var/run/ \
--oknodo --retry 30 --exec $DAEMON
echo "noip2."

echo -n "Restarting dynamic address update: "
start-stop-daemon --stop --pidfile /var/run/ \
--oknodo --retry 30 --exec $DAEMON
start-stop-daemon --start --pidfile /var/run/ \
--exec $DAEMON
echo "noip2."

echo "Usage: $0 {start|stop|restart}"
exit 1
exit 0

any hints of the problem? anything wrong on my script?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR! MySQL PID file could not be found! Niceman2005 Linux - Software 1 06-02-2005 06:29 AM
Mysql daemon error Drogo Linux - Software 5 10-22-2004 02:17 PM
/var/run/[XXX].pid - Tcl pid code liguorir Linux - Software 1 05-20-2004 10:32 PM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM
Cron Daemon error? Help please plisken Linux - General 0 08-27-2003 05:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration