summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-05-10 14:36:28 +0300
committerDevaev Maxim <[email protected]>2019-05-10 14:36:28 +0300
commit18fa69b77973b5db970797edc1f627e67904606e (patch)
treea117ca5329ec841e47dab0771a818b49c3ff8f06 /configs/os
parent03c3caa35eeef059c950874fb291d6ee78d55568 (diff)
improved users/groups
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/systemd/kvmd-ipmi.service6
-rw-r--r--configs/os/systemd/kvmd-nginx.service6
-rw-r--r--configs/os/systemd/kvmd-tc358743.service2
-rw-r--r--configs/os/systemd/kvmd.service2
-rw-r--r--configs/os/tmpfiles.conf1
5 files changed, 9 insertions, 8 deletions
diff --git a/configs/os/systemd/kvmd-ipmi.service b/configs/os/systemd/kvmd-ipmi.service
index ee28f923..bdbbdfc8 100644
--- a/configs/os/systemd/kvmd-ipmi.service
+++ b/configs/os/systemd/kvmd-ipmi.service
@@ -1,10 +1,10 @@
[Unit]
-Description=IPMI to KVMD proxy
+Description=Pi-KVM - IPMI to KVMD proxy
After=kvmd.service
[Service]
-User=kvmd
-Group=kvmd
+User=kvmd-ipmi
+Group=kvmd-ipmi
Type=simple
Restart=always
RestartSec=3
diff --git a/configs/os/systemd/kvmd-nginx.service b/configs/os/systemd/kvmd-nginx.service
index 6b318598..6da9fc1d 100644
--- a/configs/os/systemd/kvmd-nginx.service
+++ b/configs/os/systemd/kvmd-nginx.service
@@ -1,14 +1,14 @@
[Unit]
-Description=Nginx instance for KVMD
+Description=Pi-KVM - HTTP entrypoint
After=network.target network-online.target nss-lookup.target kvmd.service
[Service]
Type=forking
-PIDFile=/run/kvmd-nginx.pid
+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; error_log stderr;'
+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
diff --git a/configs/os/systemd/kvmd-tc358743.service b/configs/os/systemd/kvmd-tc358743.service
index 44d26d1a..cb11d391 100644
--- a/configs/os/systemd/kvmd-tc358743.service
+++ b/configs/os/systemd/kvmd-tc358743.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Loads EDID data to TC358743
+Description=Pi-KVM - EDID loader for TC358743
After=systemd-modules-load.service
Before=kvmd.service
diff --git a/configs/os/systemd/kvmd.service b/configs/os/systemd/kvmd.service
index eaab01aa..d161b95e 100644
--- a/configs/os/systemd/kvmd.service
+++ b/configs/os/systemd/kvmd.service
@@ -1,5 +1,5 @@
[Unit]
-Description=The main Pi-KVM daemon
+Description=Pi-KVM - The main daemon
After=network.target network-online.target nss-lookup.target
[Service]
diff --git a/configs/os/tmpfiles.conf b/configs/os/tmpfiles.conf
new file mode 100644
index 00000000..8e1734d2
--- /dev/null
+++ b/configs/os/tmpfiles.conf
@@ -0,0 +1 @@
+D /run/kvmd 0775 kvmd kvmd -