diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-05 13:43:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-05 13:43:04 +0000 |
commit | b9b5f8d9bd86e3e93da1b53e28f7188afe417774 (patch) | |
tree | 2edc910c2787f804c5d3bb1f23149c7d128264c4 /nginx.service | |
parent | 7fed8a26b331c9d92c55722a5c49af7fc72f8577 (diff) |
automatic import of nginx
Diffstat (limited to 'nginx.service')
-rw-r--r-- | nginx.service | 20 |
1 files changed, 20 insertions, 0 deletions
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 |