2019-12-31 16:59:43 +01:00
|
|
|
[Unit]
|
|
|
|
Description=A high performance web server and a reverse proxy server
|
|
|
|
BindsTo=sys-subsystem-net-devices-ap0.device
|
2020-06-09 15:36:30 +02:00
|
|
|
After=sys-subsystem-net-devices-ap0.device wpa_supplicant@ap0.service
|
2019-12-31 16:59:43 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
PIDFile=/var/run/nginx.pid
|
|
|
|
ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx
|
2020-06-09 15:36:30 +02:00
|
|
|
ExecStartPre=/usr/bin/sleep 5
|
2019-12-31 16:59:43 +01:00
|
|
|
ExecStartPre=/usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
|
|
|
|
ExecStart=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;'
|
|
|
|
ExecReload=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' -s reload
|
|
|
|
ExecStop=/usr/sbin/nginx -g 'pid /var/run/nginx.pid;' -s quit
|
|
|
|
PrivateDevices=yes
|
|
|
|
|
|
|
|
[Install]
|
2020-06-09 15:36:30 +02:00
|
|
|
WantedBy=wpa_supplicant@ap0.service
|