[asterisk-dev] [Code Review] Launchd property list for Mac OS X

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Mar 15 03:16:09 CDT 2010


On Mon, Mar 15, 2010 at 12:45:52AM -0000, Tilghman Lesher wrote:
> 
> 
> > On 2010-03-14 15:59:06, Olle E Johansson wrote:
> > > Suggestion: Change safe_asterisk to start with launchd.
> > > 
> > > Otherwise I think this is a very welcome addition. Thank you, Tilghman!
> 
> In fact, launchd will restart the Asterisk process itself, should it exit abnormally.  So the point of using safe_asterisk is negated by the very behavior of launchd.  The only other thing I was thinking about was to add aliases, in the form of /etc/init.d files, to start and stop Asterisk, through the documented launchctl calls.

Another point is Asterisks's unexpected behaviour with regards to
droping core files. Should -g be the default? If not, why does
safe_asterisk use it?

> 
> 
> > On 2010-03-14 15:59:06, Olle E Johansson wrote:
> > > /branches/1.4/Makefile, line 695
> > > <https://reviewboard.asterisk.org/r/551/diff/2/?file=8565#file8565line695>
> > >
> > >     IS there really any point of adding DESTDIR here? Would it work in any other directory... Just guessing here, but I suspect it only works in /Library and the user's ~Library
> 
> The point of it would be if you're managing a farm of Asterisk servers,
> and you directed DESTDIR to be a mountpoint for multiple servers.

That assumes a rather rigid file-system layout. Is that layout so
common on OSX?

-- 
               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