Re: [PATCH] Adding support for reloading configuration via systemd

2020-07-24 Thread Garrit Franke
Am Fr., 24. Juli 2020 um 11:25 Uhr schrieb Garrit Franke : > > On Fri, Jul 24, 2020 at 11:14:52AM +0200, Jason A. Donenfeld wrote: > > On Fri, Jul 24, 2020 at 10:30 AM Tomcsanyi, Domonkos > > wrote: > > > > > > Signed-off-by: Domonkos P. Tomcsanyi > >

Re: [PATCH] Adding support for reloading configuration via systemd

2020-07-24 Thread Garrit Franke
On Fri, Jul 24, 2020 at 11:14:52AM +0200, Jason A. Donenfeld wrote: > On Fri, Jul 24, 2020 at 10:30 AM Tomcsanyi, Domonkos > wrote: > > > > Signed-off-by: Domonkos P. Tomcsanyi > > --- > > src/systemd/wg-quick@.service | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/src/systemd/wg-

Re: [PATCH] wg-quick: add restart command

2020-06-18 Thread Garrit Franke
Thanks for your comments! I really like the systemctl reload approach. My main intention with this patchset was to add this feature to wg-quicks arsenal because (at least for me) it's the most obvious approach. I mainly use `wg-quick down wg0 && wg0 up wg0`, I think you guys see where I'm coming fr

[PATCH 1/6] wg-quick: linux: add restart command

2020-06-17 Thread Garrit Franke
--- src/wg-quick/linux.bash | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash index e4d4c4f..6f42b7f 100755 --- a/src/wg-quick/linux.bash +++ b/src/wg-quick/linux.bash @@ -298,7 +298,7 @@ execute_hooks() { cmd_usage

[PATCH 2/6] wg-quick: add restart man page

2020-06-17 Thread Garrit Franke
--- src/man/wg-quick.8 | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/man/wg-quick.8 b/src/man/wg-quick.8 index c693a89..01b99ff 100644 --- a/src/man/wg-quick.8 +++ b/src/man/wg-quick.8 @@ -10,6 +10,8 @@ wg-quick - set up a WireGuard interface simply | .I down |

[PATCH 6/6] wg-quick: darwin: add restart command

2020-06-17 Thread Garrit Franke
--- src/wg-quick/darwin.bash | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash index cde1b54..1d32fbe 100755 --- a/src/wg-quick/darwin.bash +++ b/src/wg-quick/darwin.bash @@ -418,7 +418,7 @@ execute_hooks() { c

[PATCH 4/6] wg-quick: linux: add notice to restart command

2020-06-17 Thread Garrit Franke
--- src/wg-quick/linux.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wg-quick/linux.bash b/src/wg-quick/linux.bash index 6f42b7f..b888d63 100755 --- a/src/wg-quick/linux.bash +++ b/src/wg-quick/linux.bash @@ -353,6 +353,7 @@ cmd_down() { } cmd_restart() { + [[ " $(wg show

[PATCH] wg-quick: add restart command

2020-06-17 Thread Garrit Franke
Franke Garrit Franke (6): wg-quick: linux: add restart command wg-quick: add restart man page wg-quick: freebsd: add restart command wg-quick: linux: add notice to restart command wg-quick: openbsd: add restart command wg-quick: darwin: add restart command src/man/wg-quick.8| 8

[PATCH 3/6] wg-quick: freebsd: add restart command

2020-06-17 Thread Garrit Franke
--- src/wg-quick/freebsd.bash | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/wg-quick/freebsd.bash b/src/wg-quick/freebsd.bash index e1ee67f..81c341b 100755 --- a/src/wg-quick/freebsd.bash +++ b/src/wg-quick/freebsd.bash @@ -387,7 +387,7 @@ execute_hooks() {

[PATCH 5/6] wg-quick: openbsd: add restart command

2020-06-17 Thread Garrit Franke
--- src/wg-quick/openbsd.bash | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/wg-quick/openbsd.bash b/src/wg-quick/openbsd.bash index ffd1834..5ccba03 100755 --- a/src/wg-quick/openbsd.bash +++ b/src/wg-quick/openbsd.bash @@ -390,7 +390,7 @@ execute_hooks() {