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:
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}"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue