Browse Source

Add systemd unit files

pull/1/head
Julien Escario 4 years ago
parent
commit
ea59a7cdcd
  1. 8
      docker/wg-gen-web/wg-gen-web.path
  2. 10
      docker/wg-gen-web/wg-gen-web.service

8
docker/wg-gen-web/wg-gen-web.path

@ -0,0 +1,8 @@
[Unit]
Description=Watch /etc/wireguard for changes
[Path]
PathModified=/etc/wireguard
[Install]
WantedBy=multi-user.target

10
docker/wg-gen-web/wg-gen-web.service

@ -0,0 +1,10 @@
[Unit]
Description=Restart WireGuard
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/bash /etc/wireguard/wg0-reload.sh
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save