[asterisk-dev] [Code Review] set ASTVARRUNDIR=$(localstatedir)/run/asterisk as default path

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Feb 21 04:59:49 CST 2009


On Sat, Feb 21, 2009 at 10:51:10AM -0000, Michiel van Baak wrote:
> 
> 
> > On 2009-02-11 09:11:32, Matthew Nicholson wrote:
> > > trunk/contrib/scripts/safe_asterisk, lines 95-98
> > > <http://reviewboard.digium.com/r/139/diff/1/?file=2507#file2507line95>
> > >
> > >     Perhaps this should be done at install time instead of here.
> > 
> >  wrote:
> >     It looks like this is done at install time.  It seems redundant to have it here to.
> 
> We need to do this because /var/run is wiped on reboot.

Likewise, safe_asterisk is the wrong place. safe_asterisk is run as user
asterisk by the init.d script (if at all). It should be done in the
init.d script.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list