From bf57dbb1164b32f5703482ec775d8c4d40d050f6 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 11 Jun 2020 19:28:02 +0200 Subject: [PATCH] scripts/templates/rc.conf: stop command is not needed as rc can handle it by itself. --- scripts/templates/rc.conf | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/templates/rc.conf b/scripts/templates/rc.conf index f07c04d..8464749 100644 --- a/scripts/templates/rc.conf +++ b/scripts/templates/rc.conf @@ -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"