--- rc.redhat.asterisk.orig 2008-07-06 13:50:34.000000000 +0200 +++ rc.redhat.asterisk 2008-07-06 13:50:05.000000000 +0200 @@ -20,8 +20,9 @@ # - Added support for -U and -G command line options # - Modified "reload" to call asterisk -rx 'reload' -# Use this option to specify a different configuration directory -#AST_CONFIG=/etc/asterisk +# Use this option to specify a different location of the main +# Asterisk configuration file +#AST_CONFIG=/etc/asterisk/asterisk.conf # Installation directory AST_SBIN=/usr/sbin @@ -42,8 +43,8 @@ exit 0 fi -if ! [ -d $AST_CONFIG ] ; then - echo "ERROR: $AST_CONFIG directory not found" +if ! [ -e $AST_CONFIG ] ; then + echo "ERROR: $AST_CONFIG file not found" exit 0 fi