From 80badab047e3161dbdff91ddde28a2784dd179b1 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Tue, 14 Aug 2018 22:16:28 -0400 Subject: [PATCH] - Ensure if even one of the required files is missing, to restart the keyservice --- unbound-keygen.service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unbound-keygen.service b/unbound-keygen.service index d83b712..f5e6535 100644 --- a/unbound-keygen.service +++ b/unbound-keygen.service @@ -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]