From 6c94cd3bcc5f9cae45fa80e3048d7cb395f05796 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 31 Oct 2024 07:11:45 +0000 Subject: automatic import of nginx --- nginx.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nginx.service (limited to 'nginx.service') diff --git a/nginx.service b/nginx.service new file mode 100644 index 0000000..5b16189 --- /dev/null +++ b/nginx.service @@ -0,0 +1,20 @@ +[Unit] +Description=The nginx HTTP and reverse proxy server +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +PIDFile=/run/nginx.pid +# Nginx will fail to start if /run/nginx.pid already exists but has the wrong +# SELinux context. This might happen when running `nginx -t` from the cmdline. +ExecStartPre=/usr/bin/rm -f /run/nginx.pid +ExecStartPre=/usr/sbin/nginx -t +ExecStart=/usr/sbin/nginx +ExecReload=/bin/kill -s HUP $MAINPID +KillSignal=SIGQUIT +TimeoutStopSec=5 +KillMode=mixed +PrivateTmp=true + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3