summaryrefslogtreecommitdiff
path: root/configs/systemd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-10-31 11:00:25 +0300
committerDevaev Maxim <[email protected]>2018-10-31 11:00:25 +0300
commite0cab7db58baf856736893d084e0d2a1cf0c9a3f (patch)
treed69377fba818eea5c693af6cc4b3dbf56760b500 /configs/systemd
parent1a06e8d1eb4f9afa72fd4d1ca506724c7a8c54c0 (diff)
configs moving
Diffstat (limited to 'configs/systemd')
-rw-r--r--configs/systemd/kvmd-tc358743.service13
-rw-r--r--configs/systemd/kvmd.service14
2 files changed, 27 insertions, 0 deletions
diff --git a/configs/systemd/kvmd-tc358743.service b/configs/systemd/kvmd-tc358743.service
new file mode 100644
index 00000000..d1b89862
--- /dev/null
+++ b/configs/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-streamer --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/systemd/kvmd.service b/configs/systemd/kvmd.service
new file mode 100644
index 00000000..765508fe
--- /dev/null
+++ b/configs/systemd/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/kvmd.conf
+ExecStopPost=/usr/bin/kvmd-cleanup --config /etc/kvmd/kvmd.conf
+
+[Install]
+WantedBy=multi-user.target