blob: 587349127d63047cc60d1b04ae791c3046e24b16 [file] [log] [blame]
[Unit]
Description=The NGINX HTTP and reverse proxy server
After=network.target
[Service]
Type=forking
ExecStartPre=/usr/bin/env gen-cert.sh
ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/
ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx
ExecStart=/usr/bin/env nginx -p /var/volatile/nginx
ExecReload=/usr/bin/env kill -s HUP $MAINPID
ExecStop=/usr/bin/env kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy={SYSTEMD_DEFAULT_TARGET}