Alejandro Kauffmann
2009-Jan-06 08:28 UTC
[asterisk-users] Problems getting 1.6 to run with user asterisk and group asterisk
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
Tzafrir Cohen
2009-Jan-06 09:34 UTC
[asterisk-users] Problems getting 1.6 to run with user asterisk and group asterisk
On Tue, Jan 06, 2009 at 02:28:53AM -0600, Alejandro Kauffmann wrote:> 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 = asteriskCould you please post the complete file? (maybe grep -v '^;') -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir