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

11 lines
259 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:33:19 +00:00
ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split(".")[0] }}.service
2022-07-13 11:51:25 +00:00
[Install]
RequiredBy=wireguard-ui-watcher.path