<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 1, 2014 at 4:31 PM, Oron Peled <span dir="ltr"><<a href="mailto:oron.peled@xorcom.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=oron.peled@xorcom.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">oron.peled@xorcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
On Wednesday 01 January 2014 10:23:01 Tzafrir Cohen wrote:<br>
> I looked into running Asterisk as non-root. But I can't find a way<br>
> to get systemd to generate /var/run/asterisk as a writable directory to<br>
> the service.<br>
<br>
I think systemd canonical answer to this is systemd-tmpfiles(8)<br>
and tmpfiles.d(5).<br>
<br>
I don't remember at which systemd version they were introduced...<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div>I forget when but it's as simple as creating /etc/tmpfiles.d/asterisk.conf with one line in it...</div><div>d /run/asterisk 0755 asterisk asterisk<br>
</div><div><br></div><div><br></div><div><br></div></div></div></div>