[asterisk-dev] [Code Review] 3062: a systemd service

George Joseph reviewboard at asterisk.org
Wed Jan 1 11:14:40 CST 2014



> On Jan. 1, 2014, 9:43 a.m., George Joseph wrote:
> >

One other thing to consider...  Unless /etc/asterisk is the working directory (which it shouldn't be), the LUA_PATH is going to need to be set or asterisk won't resolve lua script locations correctly.  I handle this like so...

EnvironmentFile=/etc/asterisk/asterisk.env
WorkingDirectory=/var/lib/asterisk
ExecStart=/usr/sbin/asterisk -U asterisk -G asterisk -C /etc/asterisk/asterisk.conf

where asterisk.env contains...
LUA_PATH="?;?.lua;/etc/asterisk/?;/etc/asterisk/?.lua"


- George


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3062/#review10503
-----------------------------------------------------------


On Dec. 24, 2013, 9:49 a.m., Tzafrir Cohen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3062/
> -----------------------------------------------------------
> 
> (Updated Dec. 24, 2013, 9:49 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Installs a systemd service file for Asterisk.
> 
> Systeemd is the new "one daemon to rule them all" for Linux: http://www.freedesktop.org/wiki/Software/systemd/
> On systems without systemd this should be just a harmless (though maybe annoying) text file.
> 
> This is aimed at replacing safe_asterisk with a more reliable main loop. It almost does that. Is still fails to handle failures, as it seems that systemd's ExecPostStop command does not get the exist status of the stopped command.
> 
> 
> Diffs
> -----
> 
>   /trunk/contrib/asterisk.service PRE-CREATION 
>   /trunk/Makefile 404563 
> 
> Diff: https://reviewboard.asterisk.org/r/3062/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Tzafrir Cohen
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140101/ea75bed9/attachment-0001.html>


More information about the asterisk-dev mailing list