mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update init.d file (#1039)
This commit is contained in:
parent
b426036832
commit
d22d7afd83
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue