Web Hosting Talk







View Full Version : Restart script for named


Racin' Rob
02-10-2001, 08:42 PM
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]

cperciva
02-10-2001, 09:03 PM
Provided that you have crond running, yes.

And unless you're running an exceptionally bizzare distribution, crond will be running by default.

iboxhosting
02-20-2001, 02:32 PM
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.

Keen
02-20-2001, 02:54 PM
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.

However, he just wants to restart named on a daily basis. There is a need of restarting named after adding/changing entries in order to make them working.
Sure, named it started at boot time automaticaly.
There are linux machines which work for 60 days or even longer without a restart...

iboxhosting
02-20-2001, 03:27 PM
In that case... the cron would be fine :)

elsmore1
02-21-2001, 12:26 PM
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.

ckizer
03-17-2001, 10:12 AM
Restarting once a day? Bad Bad!