summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-06-28 07:07:19 +0300
committerDevaev Maxim <[email protected]>2018-06-28 07:07:19 +0300
commit5925957b9663c02ac4c38e1f77d199d1552f55e7 (patch)
treedf35ce58c742df7940e525b0778cec8773f2c528
parentba3c49a816ca627f6cc6390364fd483cabd5ac71 (diff)
systemd service
-rw-r--r--kvmd/kvmd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/kvmd/kvmd.service b/kvmd/kvmd.service
new file mode 100644
index 00000000..40fd6cd9
--- /dev/null
+++ b/kvmd/kvmd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=The main process of Pi-KVM
+After=network.target network-online.target nss-lookup.target
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=3
+
+ExecStart=python -m kvmd --config /etc/kvmd.yaml
+ExecStopPost=python -m kvmd.extras.cleanup --config /etc/kvmd.yaml
+
+[Install]
+WantedBy=multi-user.target