1
0
Fork 0
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:
Henrik Hautakoski 2022-08-19 13:48:01 +02:00
parent 0001c28ca7
commit fd04b3364f
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -1,6 +1,6 @@
# Default settings for {{ PROGRAM_NAME }}
#
# This is sourced by the systemd unit file.
# This is sourced by the systemd unit file or init.d
# Command line flags to pass to {{ PROGRAM_NAME }}
# First is IP to listen to, second is port.

View file

@ -3,7 +3,7 @@ Description={{ DESCRIPTION }}
After=network.target
[Service]
EnvironmentFile=-/etc/{{ PROGRAM_NAME }}/env
EnvironmentFile=-/etc/default/{{ PROGRAM_NAME }}
Type=simple
ExecStart={{ PROGRAM }} $OPTS
Restart=on-failure