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"