Index: contrib/init.d/rc.redhat.asterisk =================================================================== --- contrib/init.d/rc.redhat.asterisk (revision 11311) +++ contrib/init.d/rc.redhat.asterisk (working copy) @@ -50,6 +50,9 @@ #AST_USER="asterisk" #AST_GROUP="asterisk" +# Use this option to specify a different location for the Asterisk configuration. +#AST_CONFIG=/etc/asterisk + RETVAL=0 start() { @@ -64,6 +67,9 @@ if [ $AST_GROUP ] ; then ASTARGS="`echo $ASTARGS` -G $AST_GROUP" fi + if [ $AST_CONFIG ] ; then + ASTARGS="`echo $ASTARGS` -C $AST_CONFIG" + fi daemon $DAEMON $ASTARGS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk