Results 1 to 7 of 7
  1. #1
    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

  2. #2
    Provided that you have crond running, yes.

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

  3. #3
    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

  4. #4
    Join Date
    Feb 2001
    Location
    Germany, Frankfurt
    Posts
    4

    Lightbulb

    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...

  5. #5
    In that case... the cron would be fine
    iBoxHosting.com - WebHosting for as little as .16 cents per day. Quality and Reliable Services

  6. #6
    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.

  7. #7
    Join Date
    Mar 2001
    Location
    The Office
    Posts
    352

    ahh

    Restarting once a day? Bad Bad!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •