sngrep: fix error if gnutls and openssl are both enabled
[buildroot-gz.git] / package / nginx / nginx.service
blob320df9a80e1ca0e5c5529642bf154e3c34cd3d7a
1 [Unit]
2 Description=A high performance web server and a reverse proxy server
3 After=syslog.target network.target
5 [Service]
6 Type=forking
7 PIDFile=/var/run/nginx.pid
8 ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx
9 ExecStartPre=/usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
10 ExecStart=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
11 ExecReload=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' -s reload
12 ExecStop=/usr/sbin/nginx -g 'pid /var/run/nginx.pid;' -s quit
13 PrivateDevices=yes
15 [Install]
16 WantedBy=multi-user.target