summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/os/systemd/kvmd-nginx.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/os/systemd/kvmd-nginx.service b/configs/os/systemd/kvmd-nginx.service
new file mode 100644
index 00000000..ab223488
--- /dev/null
+++ b/configs/os/systemd/kvmd-nginx.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Nginx instance for KVMD
+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 -g 'pid /run/kvmd-nginx.pid; error_log stderr;'
+ExecReload=/usr/bin/nginx -s reload -p /etc/kvmd/nginx
+KillSignal=SIGQUIT
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target