1
0
Fork 0
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:
Henrik Hautakoski 2020-06-11 19:28:02 +02:00
parent 56cddd8e24
commit bf57dbb116

View file

@ -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"