[asterisk-bugs] [Asterisk 0015846]: Asterisk is looking in the wrong location for the asterisk.pid (and probably asterisk.ctl) file.
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Oct 9 14:42:49 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=15846
======================================================================
Reported By: dlynes
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 15846
Category: Core/Configuration
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: 1.6.1.6
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-09-07 22:45 CDT
Last Modified: 2009-10-09 14:42 CDT
======================================================================
Summary: Asterisk is looking in the wrong location for the
asterisk.pid (and probably asterisk.ctl) file.
Description:
Asterisk is not looking in the config file for where to locate the
asterisk.pid file. Using strings, it is readily apparent that the location
is also hard-coded in the asterisk binary.
======================================================================
----------------------------------------------------------------------
(0112162) gcoco (reporter) - 2009-10-09 14:42
https://issues.asterisk.org/view.php?id=15846#c112162
----------------------------------------------------------------------
Have been tracking down the same issue.
# strings /usr/sbin/asterisk | grep /var/run
/var/run/asterisk.pid
/var/run/asterisk.ctl
/var/run
# pwd
/usr/src/asterisk/asterisk-1.6.1.6
#grep /var/run *
defaults.h:#define DEFAULT_RUN_DIR "/var/run"
defaults.h:#define DEFAULT_SOCKET "/var/run/asterisk.ctl"
defaults.h:#define DEFAULT_PID "/var/run/asterisk.pid"
Makefile: ASTVARRUNDIR=/var/run/asterisk
# pwd
/etc/asterisk
# grep /var/run *
asterisk.conf:astrundir => /var/run/asterisk
extensions_additional.conf:ASTRUNDIR = /var/run/asterisk
# strace -eopen asterisk -U asterisk
-- snip snip --
open("/var/run/asterisk.pid", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666)
= -1 EACCES (Permission denied)
Unable to open pid file '/var/run/asterisk.pid': Permission denied
The override does not appear to be working.
Issue History
Date Modified Username Field Change
======================================================================
2009-10-09 14:42 gcoco Note Added: 0112162
======================================================================
More information about the asterisk-bugs
mailing list