summaryrefslogtreecommitdiff
path: root/kvmd/configs/kvmd.service
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/configs/kvmd.service')
-rw-r--r--kvmd/configs/kvmd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/kvmd/configs/kvmd.service b/kvmd/configs/kvmd.service
new file mode 100644
index 00000000..185a4eb5
--- /dev/null
+++ b/kvmd/configs/kvmd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=The main Pi-KVM daemon
+After=network.target network-online.target nss-lookup.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=3
+
+ExecStart=/usr/bin/kvmd --config /etc/kvmd.yaml
+ExecStopPost=/usr/bin/kvmd-cleanup --config /etc/kvmd.yaml
+
+[Install]
+WantedBy=multi-user.target