[asterisk-users] Problems getting 1.6 to run with user asterisk and group asterisk
Alejandro Kauffmann
akauffma at prodigy.net.mx
Tue Jan 6 02:28:53 CST 2009
I've built SVN-trunk-r167180 and try to start it with:
asterisk -f -C /etc/asterisk/asterisk.conf
which results in:
Unable to open pid file '/var/run/asterisk.pid': Permission denied
Unable to bind socket to /var/run/asterisk.ctl: Permission denied
However, /etc/asterisk/asterisk.conf has:
astrundir => /var/run/asterisk
runuser = asterisk
rungroup = asterisk
The directory, user, and group exist. Permissions are fine. The only
way I can get it to run is to edit defaults.h and change:
#define DEFAULT_RUN_DIR "/var/run/asterisk"
#define DEFAULT_SOCKET "/var/run/asterisk/asterisk.ctl"
#define DEFAULT_PID "/var/run/asterisk/asterisk.pid"
After these changes and recompiling all is fine.
It seems that at startup asterisk.conf is being parsed, runuser and
rungroup are being set, but astrundir is not overriding the defaults.
Am I missing something?
Alex
More information about the asterisk-users
mailing list