diff options
Diffstat (limited to 'src/system/files/systemd/sys/wireguard.service')
-rw-r--r-- | src/system/files/systemd/sys/wireguard.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/system/files/systemd/sys/wireguard.service b/src/system/files/systemd/sys/wireguard.service new file mode 100644 index 0000000..76a2968 --- /dev/null +++ b/src/system/files/systemd/sys/wireguard.service @@ -0,0 +1,14 @@ +[Unit] +Description=Wireguard +After=network-online.target +Wants=network-online.target + +[Service] +Type=oneshot +RemainAfterExit=true +User=root +ExecStart=/usr/bin/wg-quick up wg0 +ExecStop=/usr/bin/wg-quick down wg0 + +[Install] +WantedBy=multi-user.target |