[asterisk-users] Can't restart asterisk from script
Michelle Dupuis
support at ocg.ca
Thu Dec 10 06:51:05 CST 2009
Ok that makes sense...but what would * try to execute requiring the path?
All modules are loaded by * using the built directory name...
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bill Kenworthy
Sent: Wednesday, December 09, 2009 11:04 PM
To: Asterisk Users List
Subject: Re: [asterisk-users] Can't restart asterisk from script
Yes, but if asterisk cant find some of its components due to abbreviated
path or ...
Just run a cron that prints the results from "env" and compare and see if
there is something obvious - there may also be "privilege issues"
BillK
On Wed, 2009-12-09 at 22:32 -0500, Michelle Dupuis wrote:
> I had double quotes originally - and that didn't work
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Juan E.
> Rodríguez
> Sent: Wednesday, December 09, 2009 10:14 PM
> To: Asterisk Users List
> Subject: Re: [asterisk-users] Can't restart asterisk from script
>
> You should replace the single quote with double quote.
>
> ------Original Message------
> From: Michelle Dupuis
> Sender: asterisk-users-bounces at lists.digium.com
> To: 'Asterisk Users List'
> ReplyTo: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Can't restart asterisk from script
> Sent: Dec 9, 2009 10:59 PM
>
> But the error message in my log shows the error to be from asterisk,
> so I'm guessing I'm sending a parameter incorrectly to asterisk -
> which fits with the no quote theory
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bill
> Kenworthy
> Sent: Wednesday, December 09, 2009 9:31 PM
> To: Asterisk Users List
> Subject: Re: [asterisk-users] Can't restart asterisk from script
>
> 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
>
>
> _______________________________________________
> -- 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
>
>
> _______________________________________________
> -- 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
>
>
> Saludos,
> Juan E. Rodríguez
> _______________________________________________
> -- 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
>
>
> _______________________________________________
> -- 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
_______________________________________________
-- 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