On Fedora, Kernel Update Resets /var/run/asterisk Owner To Root.root

Home » Asterisk Users » On Fedora, Kernel Update Resets /var/run/asterisk Owner To Root.root
Asterisk Users 5 Comments

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

5 thoughts on - 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

  • 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

  • No. /run has become a tmpfs directory. /var/run has been a “tmpfs” in Debian (tmpfs or deleted at startup) even before systemd.

  • It’s already in the RPMs distributed by Fedora. I wouldn’t know about the RPMs distributed by Digium.