sean darcy
2014-Dec-02 19:22 UTC
[asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root
On Fedora 20, every time the kernel updates, /var/run/asterisk owner is set to root.root. I'm running asterisk under user asterisk. Is there any way to keep /var/run/asterisk as asterisk.asterisk. Or do I find a new place to put asterisk.pid? sean
Jeffrey Ollie
2014-Dec-02 19:45 UTC
[asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root
Are you using the Fedora RPMs or are you compiling it yourself? If you're compiling it yourself, you'll need to create a file called /etc/tmpfiles.d/asterisk.conf with this content: d /run/asterisk 0755 asterisk asterisk On Fedora /var/run is a symlink to /run, and /run is a tmpfs partition, which means it gets wiped out every time you reboot. systemd-tmpfiles uses the files in /etc/tmpfiles.d and /usr/lib/tmpfiles.d to recreate files/directories at boot time. On Tue, Dec 2, 2014 at 1:22 PM, sean darcy <seandarcy2 at gmail.com> wrote:> On Fedora 20, every time the kernel updates, /var/run/asterisk owner is set > to root.root. I'm running asterisk under user asterisk. > > Is there any way to keep /var/run/asterisk as asterisk.asterisk. Or do I > find a new place to put asterisk.pid? > > sean > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Jeff Ollie
Jeffrey Ollie
2014-Dec-02 19:46 UTC
[asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root
On Tue, Dec 2, 2014 at 1:22 PM, sean darcy <seandarcy2 at gmail.com> wrote:> > Or do I > find a new place to put asterisk.pid?Also, if you use the native systemd unit file, you no longer need a PID file, although you still need /run/asterisk to store the control socket. -- Jeff Ollie
sean darcy
2014-Dec-02 21:00 UTC
[asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root
On 12/02/2014 02:46 PM, Jeffrey Ollie wrote:> On Tue, Dec 2, 2014 at 1:22 PM, sean darcy <seandarcy2 at gmail.com> wrote: >> >> Or do I >> find a new place to put asterisk.pid? > > Also, if you use the native systemd unit file, you no longer need a > PID file, although you still need /run/asterisk to store the control > socket. >So systemd is taking over the galaxy. Put asterisk.conf in /etc/tmpfiles.d, and all worked. It needs to be included in the rpm. I still need ctl so I can access * remotely. Thanks for the help. sean
Maybe Matching Threads
- On Fedora, kernel update resets /var/run/asterisk owner to root.root
- On Fedora, kernel update resets /var/run/asterisk owner to root.root
- running tomcat as non-root user.. (/var/run pidfile issue)
- [PATCH] appliance: run systemd-tmpfiles also for /var/run
- permission woes on systemd