Description of problem: Asterisk is running as root on EL6 and ignoring /etc/sysconfig/asterisk config. Seems to be the same bug reported in: https://bugzilla.redhat.com/show_bug.cgi?id=666081 Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. service asterisk start Actual results: [root@localhost ~]# ps aux | grep asterisk root 1573 4.6 2.1 992204 21756 ? Ssl 09:13 0:00 /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf Expected results: [root@sip ~]# ps aux | grep asterisk asterisk 17089 0.1 3.7 1011888 38364 ? Ssl Feb12 16:01 /usr/sbin/asterisk -U asterisk -C /etc/asterisk/asterisk.conf
Patch to fix: --- asterisk.initd.orig 2016-02-19 09:39:53.885482238 +0200 +++ asterisk.initd.new 2016-02-19 09:33:23.729483781 +0200 @@ -95,10 +95,10 @@ start() { cd $HOME if [ $AST_USER ] ; then - AST_ARGS="$AST_ARGS -U $AST_USER" + ASTARGS="$ASTARGS -U $AST_USER" fi if [ $AST_GROUP ] ; then - AST_ARGS="$AST_ARGS -G $AST_GROUP" + ASTARGS="$ASTARGS -G $AST_GROUP" fi if [ $AST_CONFIG ]; then ASTARGS="$ASTARGS -C $AST_CONFIG"
I have tested and confirm this same problem. Version: asterisk-1.8.32.3-2.el6.x86_64 Tried reporting to Digium but they are not maintaining Asterisk 1.8 any more. See also... https://issues.asterisk.org/jira/browse/ASTERISK-26619 I have edited /etc/sysconfig/asterisk manually but a packaged fix would be much better than manual script edits.
This message is a reminder that EPEL 6 is nearing its end of life. Fedora will stop maintaining and issuing updates for EPEL 6 on 2020-11-30. It is our policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of 'el6'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later EPEL version. Thank you for reporting this issue and we are sorry that we were not able to fix it before EPEL 6 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
EPEL el6 changed to end-of-life (EOL) status on 2020-11-30. EPEL el6 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of EPEL please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.