mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
scripts/templates/rc.conf: use "LOG_FILE" variable.
This commit is contained in:
parent
9532a8d5ef
commit
2470062c3d
2 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ mkdir -p ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_RCDIR}
|
|||
cat ${TEMPLATE_DIR}/rc.conf \
|
||||
| sed "s~{{ RC_NAME }}~${RC_NAME}~g" \
|
||||
| sed "s~{{ PID_FILE }}~${PID_FILE}~g" \
|
||||
| sed "s~{{ LOG_FILE }}~${PACKAGE_LOGFILE}~" \
|
||||
| sed "s~{{ DESCRIPTION }}~${PACKAGE_DESCRIPTION}~" \
|
||||
| sed "s~{{ PROGRAM }}~/${PACKAGE_BINDIR}/${PACKAGE_NAME}~" \
|
||||
> ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_RCDIR}/${RC_NAME}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
name="{{ RC_NAME }}"
|
||||
desc="{{ DESCRIPTION }}"
|
||||
logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}"
|
||||
logfile="${eosio_api_healthcheck_logfile:-{{ LOG_FILE }}}"
|
||||
pidfile="{{ PID_FILE }}"
|
||||
command="{{ PROGRAM }}"
|
||||
command_args="-p ${pidfile} -l ${logfile} ${eosio_api_healthcheck_args}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue