Skip to content

Commit e7d0472

Browse files
swktraviscross
authored andcommitted
centos: rework CentOS spec files
* break out modules * conform to FHS * support CentOS v5
1 parent 08d8a1a commit e7d0472

File tree

5 files changed

+2073
-793
lines changed

5 files changed

+2073
-793
lines changed

build/freeswitch.init.redhat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# chkconfig: 345 89 14
88
# description: Starts and stops the freeswitch server daemon
99
# processname: freeswitch
10-
# config: /opt/freeswitch/conf/freeswitch.conf
11-
# pidfile: /opt/freeswitch/run/freeswitch.pid
10+
# config: /usr/local/freeswitch/conf/freeswitch.conf
11+
# pidfile: /usr/local/freeswitch/run/freeswitch.pid
1212
#
1313

1414
# Source function library.
@@ -17,13 +17,13 @@
1717
PROG_NAME=freeswitch
1818
PID_FILE=${PID_FILE-/var/run/freeswitch/freeswitch.pid}
1919
FS_USER=${FS_USER-freeswitch}
20-
FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
21-
FS_HOME=${FS_HOME-/opt/freeswitch}
20+
FS_FILE=${FS_FILE-/usr/freeswitch}
21+
FS_HOME=${FS_HOME-/var/run/freeswitch}
2222
LOCK_FILE=/var/lock/subsys/freeswitch
2323
FREESWITCH_ARGS="-nc"
2424
RETVAL=0
2525

26-
# Source options file
26+
# Source usr/localions file
2727
if [ -f /etc/sysconfig/freeswitch ]; then
2828
. /etc/sysconfig/freeswitch
2929
fi

0 commit comments

Comments
 (0)