summaryrefslogtreecommitdiff
path: root/configs/os/services
diff options
context:
space:
mode:
Diffstat (limited to 'configs/os/services')
-rw-r--r--configs/os/services/kvmd-ipmi.service16
-rw-r--r--configs/os/services/kvmd-nginx.service17
-rw-r--r--configs/os/services/kvmd-tc358743.service13
-rw-r--r--configs/os/services/kvmd.service16
4 files changed, 62 insertions, 0 deletions
diff --git a/configs/os/services/kvmd-ipmi.service b/configs/os/services/kvmd-ipmi.service
new file mode 100644
index 00000000..bdbbdfc8
--- /dev/null
+++ b/configs/os/services/kvmd-ipmi.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Pi-KVM - IPMI to KVMD proxy
+After=kvmd.service
+
+[Service]
+User=kvmd-ipmi
+Group=kvmd-ipmi
+Type=simple
+Restart=always
+RestartSec=3
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+
+ExecStart=/usr/bin/kvmd-ipmi
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configs/os/services/kvmd-nginx.service b/configs/os/services/kvmd-nginx.service
new file mode 100644
index 00000000..6da9fc1d
--- /dev/null
+++ b/configs/os/services/kvmd-nginx.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Pi-KVM - HTTP entrypoint
+After=network.target network-online.target nss-lookup.target kvmd.service
+
+[Service]
+Type=forking
+PIDFile=/run/kvmd/nginx.pid
+PrivateDevices=yes
+SyslogLevel=err
+
+ExecStart=/usr/bin/nginx -p /etc/kvmd/nginx -c /etc/kvmd/nginx/nginx.conf -g 'pid /run/kvmd/nginx.pid; user kvmd-nginx; error_log stderr;'
+ExecReload=/usr/bin/nginx -s reload -p /etc/kvmd/nginx -c /etc/kvmd/nginx/nginx.conf
+KillSignal=SIGQUIT
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configs/os/services/kvmd-tc358743.service b/configs/os/services/kvmd-tc358743.service
new file mode 100644
index 00000000..cb11d391
--- /dev/null
+++ b/configs/os/services/kvmd-tc358743.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Pi-KVM - EDID loader for 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/services/kvmd.service b/configs/os/services/kvmd.service
new file mode 100644
index 00000000..d161b95e
--- /dev/null
+++ b/configs/os/services/kvmd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Pi-KVM - The main 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