wireguard-ui/templates/wireguard-ui-watcher.service.j2
2022-07-13 15:42:55 +03:00

11 lines
283 B
Django/Jinja

[Unit]
Description=Restart WireGuard
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.')[0] }}.service
[Install]
RequiredBy={{ wireguard_ui_watcher_systemd_path_unit_name }}