LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-20-2002, 12:19 PM   #1
prozach
Member
 
Registered: Feb 2002
Distribution: Fedora RedHat Core 2
Posts: 58

Rep: Reputation: 15
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!!
 
Old 03-20-2002, 12:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
just add a line in /etc/rc.local to have it run on boot. that's what i do with my dynu.com client
 
Old 03-20-2002, 01:10 PM   #3
prozach
Member
 
Registered: Feb 2002
Distribution: Fedora RedHat Core 2
Posts: 58

Original Poster
Rep: Reputation: 15
Cool, thanks! worked like a charm. I'm writing that down.
 
Old 03-20-2002, 03:41 PM   #4
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
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.
 
Old 03-20-2002, 04:40 PM   #5
JimKyle
Member
 
Registered: Dec 2001
Location: Oklahoma City, OK, USA
Distribution: Xubuntu 16.04 LTS
Posts: 207
Blog Entries: 1

Rep: Reputation: 38
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...
 
Old 03-21-2002, 05:42 PM   #6
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
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
 
  


Reply


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
My Redhat Linux 9 machine won't startup but gives a startup error" njugs79 Linux - Newbie 2 03-23-2005 01:50 AM
why does eth01 fail on startup and delay startup? infantpenguin Linux - Newbie 3 01-28-2005 11:45 AM
ALSA Startup error, MPlayer startup error, Sid andymadigan Debian 4 08-03-2004 05:15 PM
How to get IP on startup? lqx84 Linux - Wireless Networking 11 01-27-2004 09:54 PM
anything similar to DNS2GO im1crazyassmofo Linux - General 2 02-09-2003 03:44 AM


All times are GMT -5. The time now is 11:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration