提交 c276b7b7 authored 作者: Mathieu Rene's avatar Mathieu Rene

FSBUILD-240

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16594 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 00e17896
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
# description: Starts and stops the freeswitch server daemon # description: Starts and stops the freeswitch server daemon
# processname: freeswitch # processname: freeswitch
# config: /opt/freeswitch/conf/freeswitch.conf # config: /opt/freeswitch/conf/freeswitch.conf
# pidfile: /opt/freeswitch/log/freeswitch.pid # pidfile: /opt/freeswitch/run/freeswitch.pid
# #
# Source function library. # Source function library.
. /etc/init.d/functions . /etc/init.d/functions
PROG_NAME=freeswitch PROG_NAME=freeswitch
PID_FILE=${PID_FILE-/opt/freeswitch/log/freeswitch.pid} PID_FILE=${PID_FILE-/opt/freeswitch/run/freeswitch.pid}
FS_USER=${FS_USER-freeswitch} FS_USER=${FS_USER-freeswitch}
FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch} FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
FS_HOME=${FS_HOME-/opt/freeswitch} FS_HOME=${FS_HOME-/opt/freeswitch}
......
...@@ -202,7 +202,7 @@ case "$1" in ...@@ -202,7 +202,7 @@ case "$1" in
## argument to this init script which is required for a reload. ## argument to this init script which is required for a reload.
## Note: probe is not (yet) part of LSB (as of 1.9) ## Note: probe is not (yet) part of LSB (as of 1.9)
test /opt/freeswitch/conf/freeswitch.xml -nt /opt/freeswitch/log/freeswitch.pid && echo reload test /opt/freeswitch/conf/freeswitch.xml -nt /opt/freeswitch/run/freeswitch.pid && echo reload
;; ;;
*) *)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
......
check process freeswitch with pidfile /opt/freeswitch/log/freeswitch.pid check process freeswitch with pidfile /opt/freeswitch/run/freeswitch.pid
group voice group voice
start program = "/etc/init.d/freeswitch start" start program = "/etc/init.d/freeswitch start"
stop program = "/etc/init.d/freeswitch stop" stop program = "/etc/init.d/freeswitch stop"
......
check process freeswitch with pidfile /opt/freeswitch/log/freeswitch.pid check process freeswitch with pidfile /opt/freeswitch/run/freeswitch.pid
group voice group voice
start program = "/etc/init.d/freeswitch start" start program = "/etc/init.d/freeswitch start"
stop program = "/etc/init.d/freeswitch stop" stop program = "/etc/init.d/freeswitch stop"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论