Ensure keygen service is restart as part of the unbound service restart
So if the admin deletes the key/pem files, a systemctl restart unbound still works (and generates new key/pem files)
This commit is contained in:
parent
e60bea7ca0
commit
d7f53648f5
@ -2,7 +2,11 @@
|
||||
Description=Unbound Control Key And Certificate Generator
|
||||
After=syslog.target
|
||||
Before=unbound.service
|
||||
ConditionPathExists=!/etc/unbound/unbound_control.pem
|
||||
ConditionPathExists=!/etc/unbound/unbound_control.key
|
||||
ConditionPathExists=!/etc/unbound/unbound_server.pem
|
||||
ConditionPathExists=!/etc/unbound/unbound_server.key
|
||||
PartOf=unbound.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Loading…
Reference in New Issue
Block a user