aboutsummaryrefslogtreecommitdiff
path: root/arch/vpnswitch@.service
diff options
context:
space:
mode:
Diffstat (limited to 'arch/vpnswitch@.service')
-rw-r--r--arch/vpnswitch@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/vpnswitch@.service b/arch/vpnswitch@.service
new file mode 100644
index 0000000..8841051
--- /dev/null
+++ b/arch/vpnswitch@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Automatic VPN switch for %I
+Documentation=man:vpnswitch(1)
+After=network.target network-online-target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/vpnswitch %I
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target