LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2002, 08:05 AM   #1
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
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?
 
Old 12-14-2002, 08:36 AM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Yep , had the same problem. A nother thread had the same question recently. Hang on, I'l give you a link.
 
Old 12-14-2002, 08:46 AM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
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.
 
Old 12-14-2002, 01:34 PM   #4
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Original Poster
Rep: Reputation: 32
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.
 
Old 12-14-2002, 02:18 PM   #5
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Yes, but isn't this what I told you to do? Well it worked for the both of us so
 
Old 12-14-2002, 02:54 PM   #6
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Original Poster
Rep: Reputation: 32
Perhaps.
Didn't seem that straight forward. thought.
it pushed me in the right direction anyway.
Thanks.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start a daemon/program at boot SchwipSchwap Linux - Newbie 15 01-24-2006 01:58 AM
How to have 'at' daemon start automatically on boot TrulyTessa Linux - Newbie 4 12-13-2004 11:12 AM
How to start Lisa daemon? deanwhitaker Linux - Newbie 0 03-19-2004 08:17 AM
can't start mysql daemon IceGrill Linux - Software 3 07-29-2003 07:16 PM
How do I start ntp daemon at boot? jkcunningham Linux - Software 5 07-19-2002 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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