Web Hosting Talk







View Full Version : code for con job restart bind?


23cws
06-15-2004, 05:11 AM
anyone know the code to restart bind every 10minuteS?


complete newbie here!

cheers

Bashar
06-15-2004, 06:03 AM
restart ? why

anyhow
*/10 * * * /usr/sbin/ndc restart > /dev/null 2>&1
or
*/10 * * * /usr/sbin/ndc restart |mail you@youremail.address

to see the output

23cws
06-15-2004, 06:04 AM
wel someone told me that as i had an automatic account creation script, bind had to restart everytime an account was made to make it work!

and wel the php script thing didnt wok

Apocalypse
06-15-2004, 12:46 PM
Thats a cronjob
type crontab -e and add that line there

Bashar
06-15-2004, 02:41 PM
that line need to be inserted in ur cron

crontab -e
insert the line
save and exit
if using vi
( i ) to insert then ( ZZ ) to save and exit

you're all set.