wireguard-ui/templates/wireguard-ui-watcher.service.j2

11 lines
288 B
Plaintext
Raw Normal View History

2022-07-13 11:51:25 +00:00
[Unit]
Description=Restart WireGuard
After=network.target
[Service]
Type=oneshot
2022-07-13 12:51:36 +00:00
ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.') | first }}.service
2022-07-13 11:51:25 +00:00
[Install]
2022-07-13 12:42:55 +00:00
RequiredBy={{ wireguard_ui_watcher_systemd_path_unit_name }}