We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b426036 commit d22d7afCopy full SHA for d22d7af
trunk/etc/init.d/srs
@@ -62,7 +62,7 @@ load_process_info() {
62
start() {
63
# if exists, exit.
64
load_process_info
65
- 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
66
67
# not exists, start server
68
ok_msg "Starting SRS..."
@@ -95,7 +95,7 @@ start() {
95
96
# check whether started.
97
98
- 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
99
100
failed_msg "SRS not started"
101
return $ret
0 commit comments