Skip to content

Commit

Permalink
Reload wireguard interface on config changes instead of restart
Browse files Browse the repository at this point in the history
A restart of the service results in a connection loss for other peers, that were not part of the config change.
  • Loading branch information
Malte-Wagner authored Oct 17, 2024
1 parent e5850af commit 2cd7fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wireguard/service/running.sls
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ wireguard-service-running-service-running-{{ interface }}:
service.running:
- name: {{ wireguard.service.name }}@{{ interface }}
- enable: True
- reload: True
- watch:
- sls: {{ sls_config_file }}
- file: wireguard-config-file-interface-{{ interface }}-config
Expand Down

0 comments on commit 2cd7fc7

Please sign in to comment.