LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Getting a daemon to start at boot (https://www.linuxquestions.org/questions/linux-general-1/getting-a-daemon-to-start-at-boot-38329/)

cmfarley19 12-14-2002 08:05 AM

Getting a daemon to start at boot
 
I have a dynamic IP and use no-ip.org to redirect to my web server. They provide a program that will automatically update their server with you new IP at given intervals.

The programruns in background. I'd like to have it start at boot.

I'm running Debian 3.0. The instructions they provide don't seem to help because paths and directories are different.

Any one have any suggestions?

qanopus 12-14-2002 08:36 AM

Yep , had the same problem. A nother thread had the same question recently. Hang on, I'l give you a link.

qanopus 12-14-2002 08:46 AM

Here you go :

link

I also have debian 3.0 and I to had the very same problem. It truns out that starting thing up at boot with debian is a bit diverent.
What you can do is make a little script that starts the dhcp deamon and place it in "/etc/init.d/". Then run "update-rc.d <yourscript> defaults". That should do the trick.
Alternativly, you could play around with "sysvinit" in KDE, if you have that installed. The link I posted gives you good info.

cmfarley19 12-14-2002 01:34 PM

It was actually a lot easier than the link you posted.

I found this info in O'Reilly's "Running Linux" and on Debian's site at
10.3 System run levels and init.d scripts

I created a script to put in /etc/init.d call noip:
#! /bin/sh
case "$1" in
start)
echo "Starting noip."
/usr/local/bin/noip
;;
stop)
echo -n "Shutting down noip. "
killall -v /usr/local/bin/noip
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0


The ran:
update-rc.d noip defaults

That created all of the symlinks.

I rebooted and viola! noip is running.

I think this technique will be very usefull in the future.

qanopus 12-14-2002 02:18 PM

Yes, but isn't this what I told you to do? Well it worked for the both of us so :D

cmfarley19 12-14-2002 02:54 PM

Perhaps.
Didn't seem that straight forward. thought.
it pushed me in the right direction anyway.
Thanks.


All times are GMT -5. The time now is 07:59 AM.