Skip to content

Commit

Permalink
Reload instead of restart
Browse files Browse the repository at this point in the history
Avoid bringing down the tunnel on configuration changes,
wg-quick@ supports reloading:
https://git.zx2c4.com/wireguard-tools/tree/src/systemd/[email protected]#n19

Signed-off-by: Georg Pfuetzenreuter <[email protected]>
  • Loading branch information
tacerus committed Feb 24, 2024
1 parent 825c5b5 commit 497b5cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wireguard/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ restart wg-quick@{{interface_name}}:
service.running:
- name: wg-quick@{{interface_name}}
- enable: True
- reload: True
- watch:
- file: wireguard_interface_{{interface_name}}_config
- require:
Expand Down

0 comments on commit 497b5cb

Please sign in to comment.