diff --git a/build/freeswitch.init.redhat b/build/freeswitch.init.redhat index 3e66fc845e..9c6560d20f 100644 --- a/build/freeswitch.init.redhat +++ b/build/freeswitch.init.redhat @@ -14,11 +14,6 @@ # Source function library. . /etc/init.d/functions -# Source options file -if [ -f /etc/sysconfig/freeswitch ]; then - . /etc/sysconfig/freeswitch -fi - PROG_NAME=freeswitch PID_FILE=/opt/freeswitch/log/freeswitch.pid FS_USER=freeswitch @@ -27,6 +22,11 @@ LOCK_FILE=/var/lock/subsys/freeswitch FREESWITCH_ARGS="-nc" RETVAL=0 +# Source options file +if [ -f /etc/sysconfig/freeswitch ]; then + . /etc/sysconfig/freeswitch +fi + # start() {