--resolve FS-4234
This commit is contained in:
parent
b3b2c37526
commit
e120f4b359
|
@ -46,12 +46,7 @@
|
||||||
# Voice Platform
|
# Voice Platform
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
#
|
#
|
||||||
# Check for missing binaries (stale symlinks should not happen)
|
|
||||||
# Note: Special treatment of stop for LSB conformance
|
|
||||||
FREESWITCH_BIN=/opt/freeswitch/bin/freeswitch
|
FREESWITCH_BIN=/opt/freeswitch/bin/freeswitch
|
||||||
test -x $FREESWITCH_BIN || { echo "$FREESWITCH_BIN not installed";
|
|
||||||
if [ "$1" = "stop" ]; then exit 0;
|
|
||||||
else exit 5; fi; }
|
|
||||||
|
|
||||||
# Check for existence of needed config file and read it
|
# Check for existence of needed config file and read it
|
||||||
FREESWITCH_CONFIG=/etc/sysconfig/freeswitch
|
FREESWITCH_CONFIG=/etc/sysconfig/freeswitch
|
||||||
|
@ -62,6 +57,12 @@ test -r $FREESWITCH_CONFIG || { echo "$FREESWITCH_CONFIG not existing";
|
||||||
# Read config
|
# Read config
|
||||||
. $FREESWITCH_CONFIG
|
. $FREESWITCH_CONFIG
|
||||||
|
|
||||||
|
# Check for missing binaries (stale symlinks should not happen)
|
||||||
|
# Note: Special treatment of stop for LSB conformance
|
||||||
|
test -x $FREESWITCH_BIN || { echo "$FREESWITCH_BIN not installed";
|
||||||
|
if [ "$1" = "stop" ]; then exit 0;
|
||||||
|
else exit 5; fi; }
|
||||||
|
|
||||||
# Source LSB init functions
|
# Source LSB init functions
|
||||||
# providing start_daemon, killproc, pidofproc,
|
# providing start_daemon, killproc, pidofproc,
|
||||||
# log_success_msg, log_failure_msg and log_warning_msg.
|
# log_success_msg, log_failure_msg and log_warning_msg.
|
||||||
|
@ -202,7 +203,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/run/freeswitch.pid && echo reload
|
test ${FREESWITCH_HOME}/conf/freeswitch.xml -nt ${FREESWITCH_HOME}/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}"
|
||||||
|
|
Loading…
Reference in New Issue