Yea I am running this under the var/spool/cron/ I have a file named root
with that syntax in it
Thanks I will try that syntax and see what happens
chris

-----Original Message-----
From: Scott Lawrence [mailto:scott.lawre...@nortel.com] 
Sent: Wednesday, April 22, 2009 4:00 PM
To: McCoy, Chris
Cc: sipx-users@list.sipfoundry.org
Subject: Re: [sipx-users] crontab script

On Wed, 2009-04-22 at 15:35 -0400, McCoy, Chris wrote:
> I am trying to get a crontab script to run to restart my sipxpbx
> service every morning at 3 am, I am having problems with the acd
> locking up and it just needs a restart every few days to correct the
> problem
> 
> This is the script that I have now but it doesn't seem to want to run
> can someone help.
> 
> Thanks
> 
> Chris
> 
> # this file will restart the sipxpbx service once a week at 3 am
> 
> 00 03 * * * /etc/rc.d/init.d/sipxpbx stop
> 
> 05 03 * * * /etc/rc.d/init.d/sipxpbx start

that seems like an awfully big hammer, but...

Are you running this from the root crontab?  only root can run those
commands.

I'd use the 'service' command, so it's:

05 03 * * * /sbin/service sipxpbx restart

('restart' does stop and then start).


_______________________________________________
sipx-users mailing list
sipx-users@list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users

Reply via email to