[asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread sean darcy
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 --

Re: [asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread Jeffrey Ollie
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,

Re: [asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread Jeffrey Ollie
On Tue, Dec 2, 2014 at 1:22 PM, sean darcy seandar...@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 --

Re: [asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread sean darcy
On 12/02/2014 02:46 PM, Jeffrey Ollie wrote: On Tue, Dec 2, 2014 at 1:22 PM, sean darcy seandar...@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

Re: [asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread Tzafrir Cohen
On Tue, Dec 02, 2014 at 04:00:25PM -0500, sean darcy wrote: On 12/02/2014 02:46 PM, Jeffrey Ollie wrote: On Tue, Dec 2, 2014 at 1:22 PM, sean darcy seandar...@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

Re: [asterisk-users] On Fedora, kernel update resets /var/run/asterisk owner to root.root

2014-12-02 Thread Jeffrey Ollie
On Tue, Dec 2, 2014 at 3:00 PM, sean darcy seandar...@gmail.com wrote: Put asterisk.conf in /etc/tmpfiles.d, and all worked. It needs to be included in the rpm. It's already in the RPMs distributed by Fedora. I wouldn't know about the RPMs distributed by Digium. -- Jeff Ollie --