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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jan 2 04:02:14 CST 2014


On Wed, Jan 01, 2014 at 05:16:42PM -0700, George Joseph wrote:
> 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

OK. Ignore my other reply there. I misunderstood tmpfiles, I guess.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-dev mailing list