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

Scott Griepentrog (JIRA) noreply at issues.asterisk.org
Fri Jun 26 11:11:33 CDT 2015


Scott Griepentrog created ASTERISK-25206:
--------------------------------------------

             Summary: 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
            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