update init.d file (#1039)

pull/1045/head
RocFang 7 years ago committed by winlin
parent b426036832
commit d22d7afd83

@ -62,7 +62,7 @@ load_process_info() {
start() { start() {
# if exists, exit. # if exists, exit.
load_process_info load_process_info
if [[ 0 -eq $? ]]; then failed_msg "SRS started(pid ${srs_pid}), should not start it again."; return 0; fi if [[ 0 -eq $? ]]; then failed_msg "SRS started(pid ${srs_pid}), should not start it again."; return 1; fi
# not exists, start server # not exists, start server
ok_msg "Starting SRS..." ok_msg "Starting SRS..."
@ -95,7 +95,7 @@ start() {
# check whether started. # check whether started.
load_process_info load_process_info
ret=$?; if [[ 0 -eq $? ]]; then ok_msg "SRS started(pid ${srs_pid})"; return 0; fi ret=$?; if [[ 0 -eq $ret ]]; then ok_msg "SRS started(pid ${srs_pid})"; return 0; fi
failed_msg "SRS not started" failed_msg "SRS not started"
return $ret return $ret

Loading…
Cancel
Save