Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

Re: [rhelv5-list] Named stopping

Jeff Macfarland

2008-01-15

Replies:

Author LoginPost Reply
!! (bang bang) should be ||, the logical OR operator

Bill Watson wrote:
> I pasted the command below on one line where it goes "....pid ] !!
> /sbin/ser....." in the middle.
>
> I get a cron email that says
> Cron <root@(protected) ] !!
> /sbin/service named restart
>
> /bin/sh: line 0: [: missing `]'
>
> Is there something more or different needed for an older AS4.0 system that I
> am practicing on? My named.pid is in the listed path and I don't see why it
> is whining.
>
> Thanks,
> Bill Watson
> bill@(protected)
>
> -----Original Message-----
> From: rhelv5-list-bounces@(protected)]
> On Behalf Of John Summerfield
> An entry like so in root's crontab is a handy workaround:
> <snip>
> */5 * * * * [ -f /var/named/chroot/var/run/named/named.pid ] !!
> /sbin/service named restart
>
> Note: one line
>
> Note, Each five minutes might not be your choice, but chances are that
> by the time anyone notices it's fixed.
>
>
>
>
>

--
Jeff Macfarland (jmacfarland@(protected))
Nexa Technologies - 972.747.8879
Systems Administrator
GPG Key ID: 0x5F1CA61B
GPG Key Server: hkp://wwwkeys.pgp.net

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.