From 25325b69706da897a65b105b2822453d2eedb82d Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Mon, 3 May 2021 16:18:56 -0700 Subject: [PATCH] Revert systemd renewer unit change that was incorrect This reverts commit 75f24a103adeee22a24e2b5e3bcd664c8d43340c. --- systemd/cert-renewer@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/cert-renewer@.service b/systemd/cert-renewer@.service index 0cac0fbf..f38951b5 100644 --- a/systemd/cert-renewer@.service +++ b/systemd/cert-renewer@.service @@ -26,7 +26,7 @@ ExecStart=/usr/bin/step ca renew --force $CERT_LOCATION $KEY_LOCATION ; Try to reload or restart the systemd service that relies on this cert-renewer ; If the relying service doesn't exist, forge ahead. -ExecStartPost=-systemctl try-reload-or-restart %i +ExecStartPost=/usr/bin/env bash -c "if ! systemctl --quiet is-enabled %i.service ; then exit 0; fi; systemctl try-reload-or-restart %i" [Install] WantedBy=multi-user.target