[asterisk-bugs] [JIRA] (ASTERISK-25206) No ability to control asterisk if permission failure on /var/run

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Jun 26 17:51:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226654#comment-226654 ] 

Rusty Newton commented on ASTERISK-25206:
-----------------------------------------

I believe it has been this way forever. I'd be glad to see a change as I've certainly been confused by this in the past.

> No ability to control asterisk if permission failure on /var/run
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-25206
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25206
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: SVN, 11.18.0, 13.4.0
>            Reporter: Scott Griepentrog
>            Severity: Minor
>
> When starting asterisk as a non-root user, if the user does not have write permission to the /var/run/asterisk directory, asterisk will fail to write the asterisk.ctl and asterisk.pid files, but still be running in the background and servicing ports.
> Asterisk -r will not function, and a script that checks the pid doesn't realize asterisk is running.  This scenario can lead to having multiple instances of asterisk running, with unexpected results.
> Recommendation: change the startup code to consider a failure to write the .ctl or .pid file as a fatal error and exit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list