From 3505349aee6133eda381640398c98e98e4f1905e Mon Sep 17 00:00:00 2001 From: redxef Date: Thu, 15 Jun 2023 13:51:32 +0200 Subject: [PATCH] Add reload command. --- gre-on-wg@.service | 1 + 1 file changed, 1 insertion(+) diff --git a/gre-on-wg@.service b/gre-on-wg@.service index 9531b01..5c541d4 100644 --- a/gre-on-wg@.service +++ b/gre-on-wg@.service @@ -9,6 +9,7 @@ Type=oneshot RemainAfterExit=yes ExecStart=/usr/local/bin/gre-on-wg up %i ExecStop=/usr/local/bin/gre-on-wg down %i +ExecReload=/bin/sh -c '/usr/local/bin/gre-on-wg down "$1" && /usr/local/bin/gre-on-wg up "$1"' - %i [Install] WantedBy=multi-user.target