[App_rpt-users] astdn.sh from crontab

Ken ke2n at cs.com
Mon Dec 27 11:55:48 EST 2010


I would like to sync the clock of my node every once in a while (like once a
week)

To do this I am using: 

ntpd -q

I found that this kills one of my fobs (stops updating)

 

So - I thought that I would just stop asterisk, do the time sync and start
Asterisk  again.

 

I run this script from crontab

 

/usr/local/bin/astdn.sh

/usr/sbin/ntpd -q

/usr/local/bin/astup.sh

 

But when it gets to line 6 of astdn.sh  (service asterisk stop) it throws an
error and does not really stop Asterisk. So it kills the fob.

 

I am thinking this error has something to with the environment that crontab
runs things in . how to fix?

 

Tnx

Ken

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.allstarlink.org/pipermail/app_rpt-users/attachments/20101227/8f364f99/attachment.html>


More information about the App_rpt-users mailing list