You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# Stop dance for nginx# =======================## ExecStop sends SIGSTOP (graceful stop) to the nginx process.# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control# and sends SIGTERM (fast shutdown) to the main process.# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends# SIGKILL to all the remaining processes in the process group (KillMode=mixed).## nginx signals reference doc:# http://nginx.org/en/docs/control.html#[Unit]Description=Web server to provide Platform ConfigurationDocumentation=man:nginx(8)After=network.target nss-lookup.target
[Service]Type=forkingPIDFile=/run/ag_nginx.pidExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;' -c /srv/etc/ag_nginx/ag_nginx.confExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;' -c /srv/etc/ag_nginx/ag_nginx.confExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload -c /srv/etc/ag_nginx/ag_nginx.confExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/ag_nginx.pidTimeoutStopSec=5KillMode=mixed
[Install]WantedBy=multi-user.target
|