- Ensure if even one of the required files is missing, to restart the keyservice

This commit is contained in:
Paul Wouters 2018-08-14 22:16:28 -04:00
parent 9e1a4984a2
commit 80badab047

View File

@ -2,10 +2,10 @@
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
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]