From 792632d0e5b0d1e09a050fb503d9c49f57ec555a Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 19 Aug 2022 13:51:24 +0200 Subject: [PATCH] scripts/templates/config: prefix OPTS variable so it wont collide so easy with other environment variables. --- scripts/templates/config | 2 +- scripts/templates/sysunit.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]