From 2d0491dafda5a600bafef6cab250faad3d777f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 8 Apr 2021 17:31:57 +0200 Subject: [PATCH] [__unbound_exporter] fix chicken-egg problem for service start --- type/__unbound_exporter/gencode-remote | 3 +++ type/__unbound_exporter/manifest | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/type/__unbound_exporter/gencode-remote b/type/__unbound_exporter/gencode-remote index fcd85fb..e360028 100755 --- a/type/__unbound_exporter/gencode-remote +++ b/type/__unbound_exporter/gencode-remote @@ -42,5 +42,8 @@ else # Clean up! rm -r \$workdir + + # Start service. + service unbound_exporter start fi EOF diff --git a/type/__unbound_exporter/manifest b/type/__unbound_exporter/manifest index 3602e47..7fa7df5 100755 --- a/type/__unbound_exporter/manifest +++ b/type/__unbound_exporter/manifest @@ -41,5 +41,4 @@ __file /etc/init.d/unbound_exporter \ --source "$__type/files/openrc-service" \ --mode 755 -require="__file/etc/init.d/unbound_exporter" __service unbound_exporter --action start require="__file/etc/init.d/unbound_exporter" __start_on_boot unbound_exporter