aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/system
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system')
-rw-r--r--etc/systemd/system/snx-rs.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/systemd/system/snx-rs.service b/etc/systemd/system/snx-rs.service
new file mode 100644
index 0000000..6e8953c
--- /dev/null
+++ b/etc/systemd/system/snx-rs.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=SNX-RS VPN client
+After=network.target network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/home/sommerfeld/.nix-profile/bin/snx-rs -m command -l info
+Restart=on-failure
+RestartPreventExitStatus=1 2 255
+
+[Install]
+WantedBy=multi-user.target