[asterisk-dev] [Code Review] 3062: a systemd service
George Joseph
george.joseph at fairview5.com
Wed Jan 1 18:16:42 CST 2014
On Wed, Jan 1, 2014 at 4:31 PM, Oron Peled <oron.peled at xorcom.com> wrote:
>
> On Wednesday 01 January 2014 10:23:01 Tzafrir Cohen wrote:
> > I looked into running Asterisk as non-root. But I can't find a way
> > to get systemd to generate /var/run/asterisk as a writable directory to
> > the service.
>
> I think systemd canonical answer to this is systemd-tmpfiles(8)
> and tmpfiles.d(5).
>
> I don't remember at which systemd version they were introduced...
>
> I forget when but it's as simple as creating /etc/tmpfiles.d/asterisk.conf
with one line in it...
d /run/asterisk 0755 asterisk asterisk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140101/8e314cb8/attachment.html>
More information about the asterisk-dev
mailing list