856a651875
move http-client-body-temp-path http-proxy-temp-path http-fastcgi-temp-path http-scgi-temp-path http-uwsgi-temp-path from /var/tmp/nginx to /var/cache/nginx this allows the use of systemd constructs LogsDirectory=nginx CacheDirectory=nginx to replace ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx as there isn't a similar construct for /var/tmp. Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
18 lines
492 B
Desktop File
18 lines
492 B
Desktop File
[Unit]
|
|
Description=A high performance web server and a reverse proxy server
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
LogsDirectory=nginx
|
|
CacheDirectory=nginx
|
|
PIDFile=/run/nginx.pid
|
|
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;'
|
|
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;'
|
|
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload
|
|
ExecStop=/usr/sbin/nginx -s quit
|
|
PrivateDevices=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|