unbound: add file parameter to service instance
authorJan Klos <jan@klos.xyz>
Mon, 19 Feb 2024 13:27:05 +0000 (14:27 +0100)
committerEric Luehrsen <ericluehrsen@gmail.com>
Tue, 19 Mar 2024 03:10:51 +0000 (23:10 -0400)
that way, procd does not needlessly restart unbound on triggers when
everything remains the same - changes in non-default included
configuration files will not be registered, however

Signed-off-by: Jan Klos <jan@klos.xyz>
net/unbound/files/unbound.init

index fb363e188058713f1868738ff759689915144361..8231e6931524b7812a0449988cedcfd79bbf38de 100755 (executable)
@@ -40,6 +40,7 @@ start_service() {
   procd_open_instance "unbound"
   procd_set_param command $PROG -d -c $UB_TOTAL_CONF
   procd_set_param respawn
+  procd_set_param file "$UB_TOTAL_CONF" "$UB_SRV_CONF" "$UB_EXT_CONF"
   procd_close_instance
 }