diff options
Diffstat (limited to 'configs/os/services/kvmd-nginx.service')
-rw-r--r-- | configs/os/services/kvmd-nginx.service | 17 |
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 |