Skip to content

Commit

Permalink
update init.d file (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
RocFang authored and winlinvip committed Jan 4, 2018
1 parent b426036 commit d22d7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/etc/init.d/srs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ load_process_info() {
start() {
# if exists, exit.
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
ok_msg "Starting SRS..."
Expand Down Expand Up @@ -95,7 +95,7 @@ start() {

# check whether started.
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"
return $ret
Expand Down

0 comments on commit d22d7af

Please sign in to comment.