diff --git a/scripts/templates/rc.conf b/scripts/templates/rc.conf index a9fb36a..ae839e5 100644 --- a/scripts/templates/rc.conf +++ b/scripts/templates/rc.conf @@ -18,14 +18,14 @@ desc="{{ DESCRIPTION }}" logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}" pidfile="{{ PID_FILE }}" command="{{ PROGRAM }}" -command_args="-p ${pidfile} ${eosio_api_healthcheck_args}" +command_args="-p ${pidfile} -l ${logfile} ${eosio_api_healthcheck_args}" start_cmd="${name}_start" eosio_api_healthcheck_start() { echo "Starting ${name}" - ${command} ${command_args} >>${logfile} 2>&1 & + ${command} ${command_args} 2>&1 & } load_rc_config $name