Results 1 to 7 of 7
Thread: Restart script for named
-
02-10-2001, 08:42 PM #1Junior Guru
- Join Date
- Aug 2000
- Location
- Saint John, New Brunswick, Canada
- Posts
- 211
I am a novice when it comes to cron.
I have added the following file to my cron.daily directory. Will it restart named on a daily basis?
#!/bin/sh
/usr/local/plesk/namedb/named restart
TIA,
[Edited by Racin' Rob on 02-10-2001 at 07:47 PM]Racin' Rob
http://www.racin.net
640 Kilobytes of computer memory ought to be enough for anybody.
-- Bill Gates, 1981
-
02-10-2001, 09:03 PM #2Web Hosting Master
- Join Date
- Jan 2001
- Posts
- 2,605
Provided that you have crond running, yes.
And unless you're running an exceptionally bizzare distribution, crond will be running by default.
-
02-20-2001, 02:32 PM #3Newbie
- Join Date
- Jan 2001
- Posts
- 14
What distro do you have?
Named or BIND 9 is started automatically at boot time which would be much better for you. Because if you start your server at 10:10 AM and cron is set to start it at 3:00 that is some hours DNS services won't be available.
YOu need to have it started in your systems startup scripts so that when you boot the system its up and running.
iBoxHosting.com - WebHosting for as little as .16 cents per day. Quality and Reliable Services
-
02-20-2001, 02:54 PM #4New Member
- Join Date
- Feb 2001
- Location
- Germany, Frankfurt
- Posts
- 4
Originally posted by iboxhosting
Named or BIND 9 is started automatically at boot time which would be much better for you. Because if you start your server at 10:10 AM and cron is set to start it at 3:00 that is some hours DNS services won't be available.
YOu need to have it started in your systems startup scripts so that when you boot the system its up and running.
Sure, named it started at boot time automaticaly.
There are linux machines which work for 60 days or even longer without a restart...
-
02-20-2001, 03:27 PM #5Newbie
- Join Date
- Jan 2001
- Posts
- 14
In that case... the cron would be fine
iBoxHosting.com - WebHosting for as little as .16 cents per day. Quality and Reliable Services
-
02-21-2001, 12:26 PM #6Junior Guru
- Join Date
- Nov 2000
- Location
- Moran, Ks
- Posts
- 186
Rather than restarting named, you might investigate ndc ("Named Daemon Control") with a reload to just reload changed zones or add new ones, especially if you serve a lot of zones. Documentation is pretty scarce, but try "/usr/sbin/ndc reload" to see if that does the trick for ya. You might find that you could run that hourly or every 15 minutes to update your zones, rather than once a day.
-
03-17-2001, 10:12 AM #7Aspiring Evangelist
- Join Date
- Mar 2001
- Location
- The Office
- Posts
- 352
ahh
Restarting once a day? Bad Bad!