mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
scripts/templates/rc.conf: stop command is not needed as rc can handle it by itself.
This commit is contained in:
parent
56cddd8e24
commit
bf57dbb116
1 changed files with 0 additions and 14 deletions
|
|
@ -21,7 +21,6 @@ command="{{ PROGRAM }}"
|
|||
command_args="-p ${pidfile} ${eosio_api_healthcheck_args}"
|
||||
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
|
||||
eosio_api_healthcheck_start()
|
||||
{
|
||||
|
|
@ -29,18 +28,5 @@ eosio_api_healthcheck_start()
|
|||
${command} ${command_args} >>${logfile} 2>&1 &
|
||||
}
|
||||
|
||||
eosio_api_healthcheck_stop()
|
||||
{
|
||||
rc_pid=$(check_pidfile ${pidfile} ${command})
|
||||
if $rc_pid; then
|
||||
rc_pid=$(cat ${pidfile})
|
||||
kill -$sig_stop $rc_pid
|
||||
wait_for_pids $rc_pid
|
||||
else
|
||||
_run_rc_notrunning
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue