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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to