centos: rework CentOS spec files

* break out modules
 * conform to FHS
 * support CentOS v5
This commit is contained in:
Ken Rice
2012-03-24 04:27:09 +00:00
committed by Travis Cross
parent 08d8a1a79b
commit e7d047242f
5 changed files with 1994 additions and 714 deletions

View File

@@ -7,8 +7,8 @@
# chkconfig: 345 89 14
# description: Starts and stops the freeswitch server daemon
# processname: freeswitch
# config: /opt/freeswitch/conf/freeswitch.conf
# pidfile: /opt/freeswitch/run/freeswitch.pid
# config: /usr/local/freeswitch/conf/freeswitch.conf
# pidfile: /usr/local/freeswitch/run/freeswitch.pid
#
# Source function library.
@@ -17,13 +17,13 @@
PROG_NAME=freeswitch
PID_FILE=${PID_FILE-/var/run/freeswitch/freeswitch.pid}
FS_USER=${FS_USER-freeswitch}
FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/opt/freeswitch}
FS_FILE=${FS_FILE-/usr/freeswitch}
FS_HOME=${FS_HOME-/var/run/freeswitch}
LOCK_FILE=/var/lock/subsys/freeswitch
FREESWITCH_ARGS="-nc"
RETVAL=0
# Source options file
# Source usr/localions file
if [ -f /etc/sysconfig/freeswitch ]; then
. /etc/sysconfig/freeswitch
fi