restart named in a cron

2008-06-24 Thread Nicolas Letellier
Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo "Errors when verifying named configuration" exit 1 else /etc/rc.d/named restart > /dev/null fi # O

Re: restart named in a cron

2008-06-24 Thread Schiz0
On Tue, Jun 24, 2008 at 2:17 PM, Nicolas Letellier <[EMAIL PROTECTED]> wrote: > Hi. > > I want to restart named in a script executed by a cron. My script is: > > #!/bin/sh > # verify named conf and restart it > /usr/sbin/named-checkconf > if [ ! $? -eq 0 ]; then >echo "Errors when verifying

Re: restart named in a cron

2008-06-24 Thread Kevin Kinsey
Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo "Errors when verifying named configuration" exit 1 else /etc/rc.d/named

Re: restart named in a cron

2008-06-24 Thread Jerry McAllister
On Tue, Jun 24, 2008 at 08:17:20PM +0200, Nicolas Letellier wrote: > Hi. > > I want to restart named in a script executed by a cron. My script is: > > #!/bin/sh > # verify named conf and restart it > /usr/sbin/named-checkconf > if [ ! $? -eq 0 ]; then > echo "Errors when verifying named

Re: restart named in a cron

2008-06-24 Thread Manolis Kiagias
Nicolas Letellier wrote: Hi. I want to restart named in a script executed by a cron. My script is: #!/bin/sh # verify named conf and restart it /usr/sbin/named-checkconf if [ ! $? -eq 0 ]; then echo "Errors when verifying named configuration" exit 1 else /etc/rc.d/named

Re: restart named in a cron

2008-06-25 Thread Nicolas Letellier
Le Tue, 24 Jun 2008 21:48:42 +0300, Manolis Kiagias <[EMAIL PROTECTED]> a écrit : > Nicolas Letellier wrote: > > Hi. > > > > I want to restart named in a script executed by a cron. My script > > is: > > > > #!/bin/sh > > # verify named conf and restart it > > /usr/sbin/named-checkconf > > if [ ! $