Change service type to notify

notify-reload was a mistake. It unconditionally sends signal
to service process additionally to executing ExecReload which
does not make sense.

Resolves: RHEL-77790
This commit is contained in:
Tomas Korbar 2025-02-07 14:47:30 +01:00
parent ef523c75f6
commit 67a0f749d9

View File

@ -8,7 +8,7 @@ Before=nss-lookup.target
Wants=nss-lookup.target
[Service]
Type=notify-reload
Type=notify
EnvironmentFile=-/etc/sysconfig/unbound
ExecStartPre=/usr/sbin/unbound-checkconf
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_UNBOUND_ANCHOR" == "yes" ]; then /usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem -f /etc/resolv.conf -R; else echo "Updates of root keys with unbound-anchor is disabled"; fi'