From 6fe01eb1dcb327f40793bfc14f6f0d1dbdd15c8b Mon Sep 17 00:00:00 2001 From: Cloud9 GF4 wgapi Date: Sat, 23 Oct 2021 15:44:55 -0600 Subject: [PATCH] Fixed systemd unit files --- systemd/restart-wg-quick@.service | 2 +- systemd/restart-wg-quick@.timer | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/systemd/restart-wg-quick@.service b/systemd/restart-wg-quick@.service index 076af8f..40e387c 100644 --- a/systemd/restart-wg-quick@.service +++ b/systemd/restart-wg-quick@.service @@ -1,6 +1,6 @@ [Unit] Description=Restart a wireguard service -Requires=wg-quick@%i +After=wg-quick@%i.service [Service] Type=oneshot diff --git a/systemd/restart-wg-quick@.timer b/systemd/restart-wg-quick@.timer index 6ee22c1..80fe262 100644 --- a/systemd/restart-wg-quick@.timer +++ b/systemd/restart-wg-quick@.timer @@ -1,9 +1,9 @@ [Unit] Description=Restart wg-quick@%i every 10 minutes -Requires=wg-quick@%i.service +After=wg-quick@%i.service [Timer] -OnCalendar=OnCalendar=*:0/10 +OnCalendar=*:0/10 Unit=restart-wg-quick@%i.service [Install]