From 56cddd8e247f2bca357044858f76fbaad0a5abd9 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 11 Jun 2020 19:04:09 +0200 Subject: [PATCH] scripts/templates/rc.conf: pass "-p" flag (create pidfile) to program. --- scripts/templates/rc.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/templates/rc.conf b/scripts/templates/rc.conf index 4641300..f07c04d 100644 --- a/scripts/templates/rc.conf +++ b/scripts/templates/rc.conf @@ -15,10 +15,10 @@ name="{{ RC_NAME }}" desc="{{ DESCRIPTION }}" -command="{{ PROGRAM }}" -command_args="${eosio_api_healthcheck_args}" logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}" pidfile="/var/run/${name}.pid" +command="{{ PROGRAM }}" +command_args="-p ${pidfile} ${eosio_api_healthcheck_args}" start_cmd="${name}_start" stop_cmd="${name}_stop" @@ -27,7 +27,6 @@ eosio_api_healthcheck_start() { echo "Starting ${name}" ${command} ${command_args} >>${logfile} 2>&1 & - echo $! > ${pidfile} } eosio_api_healthcheck_stop()