mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-03 11:53:43 +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}~" \
|
| sed "s~{{ PROGRAM }}~${BINDIR}/${PROGRAM_NAME}~" \
|
||||||
> ${SYSUNITDIR}/${PROGRAM_NAME}.service
|
> ${SYSUNITDIR}/${PROGRAM_NAME}.service
|
||||||
|
|
||||||
# Create systemd config file
|
# Create systemd/init.d config file
|
||||||
log_install ${DESTDIR}${ETCDIR}/env
|
log_install ${DESTDIR}/etc/default/${PROGRAM_NAME}
|
||||||
mkdir -p ${DESTDIR}${ETCDIR}
|
mkdir -p ${DESTDIR}/etc/default
|
||||||
cat ${TEMPLATE_DIR}/config \
|
cat ${TEMPLATE_DIR}/config \
|
||||||
| sed "s~{{ PROGRAM_NAME }}~${PROGRAM_NAME}~" \
|
| sed "s~{{ PROGRAM_NAME }}~${PROGRAM_NAME}~" \
|
||||||
> ${DESTDIR}${ETCDIR}/env
|
> ${DESTDIR}/etc/default/${PROGRAM_NAME}
|
||||||
|
|
||||||
# Create rsyslog file
|
# Create rsyslog file
|
||||||
log_install ${RSYSLOGDIR}/49-${PROGRAM_NAME}.conf
|
log_install ${RSYSLOGDIR}/49-${PROGRAM_NAME}.conf
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Default settings for {{ PROGRAM_NAME }}
|
# 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 }}
|
# Command line flags to pass to {{ PROGRAM_NAME }}
|
||||||
# First is IP to listen to, second is port.
|
# First is IP to listen to, second is port.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Description={{ DESCRIPTION }}
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/{{ PROGRAM_NAME }}/env
|
EnvironmentFile=-/etc/default/{{ PROGRAM_NAME }}
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart={{ PROGRAM }} $OPTS
|
ExecStart={{ PROGRAM }} $OPTS
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue