summaryrefslogtreecommitdiff
path: root/configs/os/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'configs/os/systemd')
-rw-r--r--configs/os/systemd/kvmd-tc358743.service13
-rw-r--r--configs/os/systemd/kvmd.service16
2 files changed, 29 insertions, 0 deletions
diff --git a/configs/os/systemd/kvmd-tc358743.service b/configs/os/systemd/kvmd-tc358743.service
new file mode 100644
index 00000000..44d26d1a
--- /dev/null
+++ b/configs/os/systemd/kvmd-tc358743.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Loads EDID data to TC358743
+After=systemd-modules-load.service
+Before=kvmd.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/v4l2-ctl --device=/dev/kvmd-video --set-edid=file=/etc/kvmd/tc358743-edid.hex --fix-edid-checksums
+ExecStop=/bin/true
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configs/os/systemd/kvmd.service b/configs/os/systemd/kvmd.service
new file mode 100644
index 00000000..eaab01aa
--- /dev/null
+++ b/configs/os/systemd/kvmd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=The main Pi-KVM daemon
+After=network.target network-online.target nss-lookup.target
+
+[Service]
+User=kvmd
+Group=kvmd
+Type=simple
+Restart=always
+RestartSec=3
+
+ExecStart=/usr/bin/kvmd
+ExecStopPost=/usr/bin/kvmd-cleanup
+
+[Install]
+WantedBy=multi-user.target