[asterisk-users] Can't restart asterisk from script

Bill Kenworthy billk at iinet.net.au
Wed Dec 9 20:30:34 CST 2009


Keep in mond that cron usually has a very abbreviated environment for
security reasons - you may need to set the PATH or other environment
variables in the crontab to get it to work.

Billk


On Wed, 2009-12-09 at 20:55 -0500, Michelle Dupuis wrote:
> Interesting...I'll try that.  Thanks
> 
> 
> ______________________________________________________________________
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lyle
> Giese
> Sent: Wednesday, December 09, 2009 8:47 PM
> To: Asterisk Users List
> Subject: Re: [asterisk-users] Can't restart asterisk from script
> 
> 
> 
> Doug Lytle wrote: 
> > Warren Selby wrote:
> >   
> > > On Wed, Dec 9, 2009 at 3:08 PM, Michelle Dupuis <support at ocg.ca 
> > > <mailto:support at ocg.ca>> wrote:
> > > 
> > >     I'm running * 1.4 and can successfully restart asterisk from the
> > >     command
> > >     line with:
> > >     /usr/sbin/asterisk -r -x "restart gracefully"
> > > 
> > >     
> > 
> > I have the following cron job:
> > 
> > /usr/sbin/asterisk -r -x 'restart when convenient'
> > 
> > Doug
> > 
> >   
> You probably don't need the single or double quotes at all.  I have
> never used any quoting in crontab.
> 
> Lyle Giese
> LCR Computer Services, Inc.
> 
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list