mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-03 11:53:43 +02:00
scripts/templates/rc.conf: pass logfile as "-l" flag
This commit is contained in:
parent
823832c94e
commit
9532a8d5ef
1 changed files with 2 additions and 2 deletions
|
|
@ -18,14 +18,14 @@ desc="{{ DESCRIPTION }}"
|
||||||
logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}"
|
logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}"
|
||||||
pidfile="{{ PID_FILE }}"
|
pidfile="{{ PID_FILE }}"
|
||||||
command="{{ PROGRAM }}"
|
command="{{ PROGRAM }}"
|
||||||
command_args="-p ${pidfile} ${eosio_api_healthcheck_args}"
|
command_args="-p ${pidfile} -l ${logfile} ${eosio_api_healthcheck_args}"
|
||||||
|
|
||||||
start_cmd="${name}_start"
|
start_cmd="${name}_start"
|
||||||
|
|
||||||
eosio_api_healthcheck_start()
|
eosio_api_healthcheck_start()
|
||||||
{
|
{
|
||||||
echo "Starting ${name}"
|
echo "Starting ${name}"
|
||||||
${command} ${command_args} >>${logfile} 2>&1 &
|
${command} ${command_args} 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
load_rc_config $name
|
load_rc_config $name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue