make settings in init file configurable for people that compile freeswitch by hand

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12084 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michal Bielicki 2009-02-17 09:40:32 +00:00
parent 668300a169
commit 3f2a45ee55
1 changed files with 6 additions and 4 deletions

View File

@ -15,9 +15,10 @@
. /etc/init.d/functions
PROG_NAME=freeswitch
PID_FILE=/opt/freeswitch/log/freeswitch.pid
FS_USER=freeswitch
FS_FILE=/opt/freeswitch/bin/freeswitch
PID_FILE=${PID_FILE-/opt/freeswitch/log/freeswitch.pid}
FS_USER=${FS_USER-freeswitch}
FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/opt/freeswitch}
LOCK_FILE=/var/lock/subsys/freeswitch
FREESWITCH_ARGS="-nc"
RETVAL=0
@ -40,7 +41,7 @@ start() {
return 1
fi
fi
cd $FS_HOME
daemon --user $FS_USER --pidfile $PID_FILE "$FS_FILE $FREESWITCH_ARGS $FREESWITCH_PARAMS >/dev/null 2>&1"
echo
RETVAL=$?
@ -58,6 +59,7 @@ stop() {
echo
return 1;
fi
cd $FS_HOME
$FS_FILE -stop > /dev/null 2>&1
killproc $PROG_NAME
RETVAL=$?