1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

scripts/templates/rc.conf: pass logfile as "-l" flag

This commit is contained in:
Henrik Hautakoski 2021-12-24 11:03:18 +01:00
parent 823832c94e
commit 9532a8d5ef

View file

@ -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