[asterisk-dev] [Code Review] 2730: Install a systemd service unit

Tzafrir Cohen reviewboard at asterisk.org
Thu Aug 1 02:08:04 CDT 2013


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


(Not a revieww. Somme extra details that should have gone into the description)

This is aimed at replacing safe_asterisk.

There are various knobs that safe_asterisk touches. I did not set most of them. See the man pages systemd-exec(5) and systemd-service(5)
http://www.freedesktop.org/software/systemd/man/systemd.exec.html
http://www.freedesktop.org/software/systemd/man/systemd.service.html

Another thing that is not handled here is core files. It could be handled by an ExecStopPost script, however that scriptlet has no information on the exit status of the process. The Fedora Systemd folks have a way more convoluted scheme for handling core files (a daemon listening on a pipe) which required extra setup in the Debian and Fedora system I tested it on.

- Tzafrir Cohen


On Aug. 1, 2013, 1:25 a.m., Matt Jordan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2730/
> -----------------------------------------------------------
> 
> (Updated Aug. 1, 2013, 1:25 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-21991
>     https://issues.asterisk.org/jira/browse/ASTERISK-21991
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Patch by Tzafrir.
> 
> {quote}
> systemd is a new init system used by various Linux distributions. It aims at providing an environment that is compatible among different distributions, and hence its service configuration files ("units") are eto be provided from Upstream.
> 
> The attached patch includes a simple version of a systemd unit for Asterisk, as well as installing it. It is not enabled, though.
> {quote}
> 
> 
> Diffs
> -----
> 
>   /trunk/Makefile 395920 
>   /trunk/contrib/asterisk.service PRE-CREATION 
> 
> Diff: https://reviewboard.asterisk.org/r/2730/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Matt Jordan
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130801/23dc8e19/attachment-0001.htm>


More information about the asterisk-dev mailing list