summaryrefslogtreecommitdiff
path: root/configs/os/services/kvmd-nginx.service
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-07-19 04:26:47 +0300
committerDevaev Maxim <[email protected]>2019-07-19 04:26:47 +0300
commit0b3f8281ff2b72cca53e1ff524d4db93e9939854 (patch)
tree88516497810eb36d734750f4812fff1a511d4034 /configs/os/services/kvmd-nginx.service
parent7e8d5edf13b194e507a2805755fc53e3bc61bde6 (diff)
systemd -> services
Diffstat (limited to 'configs/os/services/kvmd-nginx.service')
-rw-r--r--configs/os/services/kvmd-nginx.service17
1 files changed, 17 insertions, 0 deletions
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