mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-16 04:44:55 +02:00
scripts/install_linux.sh install systemd/init.d config file in /etc/default/eosio-api-healthcheck instead of /etc/eosio-api-healthcheck/env
Its the standard way for init.d but alot of systemd services uses it also.
This commit is contained in:
parent
0001c28ca7
commit
fd04b3364f
3 changed files with 6 additions and 6 deletions
|
|
@ -16,12 +16,12 @@ cat ${TEMPLATE_DIR}/sysunit.service \
|
|||
| sed "s~{{ PROGRAM }}~${BINDIR}/${PROGRAM_NAME}~" \
|
||||
> ${SYSUNITDIR}/${PROGRAM_NAME}.service
|
||||
|
||||
# Create systemd config file
|
||||
log_install ${DESTDIR}${ETCDIR}/env
|
||||
mkdir -p ${DESTDIR}${ETCDIR}
|
||||
# Create systemd/init.d config file
|
||||
log_install ${DESTDIR}/etc/default/${PROGRAM_NAME}
|
||||
mkdir -p ${DESTDIR}/etc/default
|
||||
cat ${TEMPLATE_DIR}/config \
|
||||
| sed "s~{{ PROGRAM_NAME }}~${PROGRAM_NAME}~" \
|
||||
> ${DESTDIR}${ETCDIR}/env
|
||||
> ${DESTDIR}/etc/default/${PROGRAM_NAME}
|
||||
|
||||
# Create rsyslog file
|
||||
log_install ${RSYSLOGDIR}/49-${PROGRAM_NAME}.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue