1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

Rename project from eosio-api-healthcheck to antelope-api-healthcheck

This commit is contained in:
Henrik Hautakoski 2022-11-25 12:38:30 +01:00
parent e0a7a10662
commit 61cb49f8be
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
20 changed files with 115 additions and 115 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
# Info
PROGRAM_NAME=eosio-api-healthcheck
PROGRAM_DESCRIPTION="HAproxy healthcheck program for EOSIO API."
PROGRAM_NAME=antelope-api-healthcheck
PROGRAM_DESCRIPTION="HAproxy healthcheck program for Antelope Leap API."

View file

@ -4,4 +4,4 @@
# Command line flags to pass to {{ PROGRAM_NAME }}
# Positional agruments are IP to listen to, then port number.
EOSIO_API_HEALTCHECK_OPTS="--log-format=logfmt 127.0.0.1 1337"
ANTELOPE_API_HEALTCHECK_OPTS="--log-format=logfmt 127.0.0.1 1337"

View file

@ -1,11 +1,11 @@
#!/bin/sh
#
# Add the following lines to /etc/rc.conf to configure eosio_api_healthcheck:
# Add the following lines to /etc/rc.conf to configure antelope_api_healthcheck:
#
# eosio_api_healthcheck_args : arguments to the command.
# antelope_api_healthcheck_args : arguments to the command.
#
# eosio_api_healthcheck_logfile : file to log to (default /var/log/${name}.log)
# antelope_api_healthcheck_logfile : file to log to (default /var/log/${name}.log)
#
# PROVIDE: {{ RC_NAME }}
@ -15,14 +15,14 @@
name="{{ RC_NAME }}"
desc="{{ PROGRAM_DESCRIPTION }}"
logfile="${eosio_api_healthcheck_logfile:-{{ LOG_FILE }}}"
logfile="${antelope_api_healthcheck_logfile:-{{ LOG_FILE }}}"
pidfile="{{ PID_FILE }}"
command="{{ PROGRAM }}"
command_args="-p ${pidfile} -l ${logfile} ${eosio_api_healthcheck_args}"
command_args="-p ${pidfile} -l ${logfile} ${antelope_api_healthcheck_args}"
start_cmd="${name}_start"
eosio_api_healthcheck_start()
antelope_api_healthcheck_start()
{
echo "Starting ${name}"
${command} ${command_args} 2>&1 &

View file

@ -5,7 +5,7 @@ After=network.target
[Service]
EnvironmentFile=-/etc/sysconfig/{{ PROGRAM_NAME }}
Type=simple
ExecStart={{ PROGRAM }} $EOSIO_API_HEALTCHECK_OPTS
ExecStart={{ PROGRAM }} $ANTELOPE_API_HEALTCHECK_OPTS
Restart=on-failure
[Install]