LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DNS2GO at startup (https://www.linuxquestions.org/questions/linux-software-2/dns2go-at-startup-16676/)

prozach 03-20-2002 11:19 AM

DNS2GO at startup
 
Here's my story. I currently have a static ip address via DSL, but want to switch to cable internet access for the cost savings and the speed increase. So i've moved over to start using the DNS2GO service (as cable doesnt give out static ip addresses) and I want to get it working before moving over to cable for my internet connection. I have the DNS2GO client installed and it seems to work fine, but i want to have it load at boot time.

Can i just drop a copy of the executable file into /etc/rc.d/init.d/ (I'm running RH 7.2) and be done with it? Or should i add it to the Xinetd service startup? Or is there something else i should do? The client that i need to have running doesnt use the start/stop/restart command line options.

Thanks!!

acid_kewpie 03-20-2002 11:27 AM

just add a line in /etc/rc.local to have it run on boot. that's what i do with my dynu.com client

prozach 03-20-2002 12:10 PM

Cool, thanks! worked like a charm. I'm writing that down.

Sixpax 03-20-2002 02:41 PM

It's a tad more difficult, but does give you better control if you put the script in /etc/rc.d/init.d and make a link under one of the run level directories (/etc/rc?.d). This allows you to not only have it start at boot time, but lets you stop it and restart it at will as well as making sure it DOES get stopped (if that's necessary) when you reboot/halt your system. With some programs, just letting the system kill the process can cause a hassle.

JimKyle 03-20-2002 03:40 PM

Quote:

Originally posted by Sixpax
It's a tad more difficult, but does give you better control if you put the script in /etc/rc.d/init.d and make a link under one of the run level directories (/etc/rc?.d). This allows you to not only have it start at boot time, but lets you stop it and restart it at will as well as making sure it DOES get stopped (if that's necessary) when you reboot/halt your system. With some programs, just letting the system kill the process can cause a hassle.
That's not really necessary with the DNS2Go package; your system and their server exchange a "heartbeat" handshake every second or so, and when you don't respond, their server switches your status. When this happens, the client package in my machine tries every 15 minutes or so to reconnect (if it's running, of course). Thus operation is entirely automatic.

I launch the client package in rc.local and it works quite well. I don't like to modify the "standard" scripts unless absolutely necessary, mostly because I would lose all my mods on an upgrade...

Sixpax 03-21-2002 04:42 PM

Yeah, I wasn't suggesting modifying the standard scripts, but creating a totally new one... btw, rc.local IS one of the standard scripts. It's linked in /etc to the one in /etc/rc.d and is called by the startup scripts in /etc/rc.d/rc[2-5].d. Hypocrit :) j/k


All times are GMT -5. The time now is 09:32 PM.