From 9532a8d5ef70789842610ad41e0ac3c511c1d973 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 24 Dec 2021 11:03:18 +0100 Subject: [PATCH] scripts/templates/rc.conf: pass logfile as "-l" flag --- scripts/templates/rc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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