Skip to content

Commit d22d7af

Browse files
RocFangwinlinvip
authored andcommitted
update init.d file (#1039)
1 parent b426036 commit d22d7af

File tree

1 file changed

+2
-2
lines changed
  • trunk/etc/init.d

1 file changed

+2
-2
lines changed

trunk/etc/init.d/srs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ load_process_info() {
6262
start() {
6363
# if exists, exit.
6464
load_process_info
65-
if [[ 0 -eq $? ]]; then failed_msg "SRS started(pid ${srs_pid}), should not start it again."; return 0; fi
65+
if [[ 0 -eq $? ]]; then failed_msg "SRS started(pid ${srs_pid}), should not start it again."; return 1; fi
6666

6767
# not exists, start server
6868
ok_msg "Starting SRS..."
@@ -95,7 +95,7 @@ start() {
9595

9696
# check whether started.
9797
load_process_info
98-
ret=$?; if [[ 0 -eq $? ]]; then ok_msg "SRS started(pid ${srs_pid})"; return 0; fi
98+
ret=$?; if [[ 0 -eq $ret ]]; then ok_msg "SRS started(pid ${srs_pid})"; return 0; fi
9999

100100
failed_msg "SRS not started"
101101
return $ret

0 commit comments

Comments
 (0)