mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-13 17:36:27 +01:00
22 lines
872 B
Desktop File
22 lines
872 B
Desktop File
[Unit]
|
|
Description=A high performance web server and a reverse proxy server
|
|
BindsTo=sys-subsystem-net-devices-ap0.device
|
|
After=sys-subsystem-net-devices-ap0.device syslog.target network.target
|
|
|
|
# check existence of configuration file
|
|
ConditionPathExists= /etc/wpa_supplicant/wpa_supplicant-ap0.conf
|
|
ConditionPathExists=!/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
|
|
|
|
[Service]
|
|
Type=forking
|
|
PIDFile=/var/run/nginx.pid
|
|
ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx
|
|
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]
|
|
WantedBy=multi-user.target
|