diff --git a/scripts/templates/config b/scripts/templates/config index 507377b..e189a11 100644 --- a/scripts/templates/config +++ b/scripts/templates/config @@ -4,4 +4,4 @@ # Command line flags to pass to {{ PROGRAM_NAME }} # First is IP to listen to, second is port. -#OPTS="127.0.0.1 1337" +#EOSIO_API_HEALTCHECK_OPTS="127.0.0.1 1337" diff --git a/scripts/templates/sysunit.service b/scripts/templates/sysunit.service index c241166..121139b 100644 --- a/scripts/templates/sysunit.service +++ b/scripts/templates/sysunit.service @@ -5,7 +5,7 @@ After=network.target [Service] EnvironmentFile=-/etc/default/{{ PROGRAM_NAME }} Type=simple -ExecStart={{ PROGRAM }} $OPTS +ExecStart={{ PROGRAM }} $EOSIO_API_HEALTCHECK_OPTS Restart=on-failure [Install]