Commit Graph

7 Commits

Author SHA1 Message Date
Jamie Nguyen
0f695d477b Remove PID file before starting nginx (#1268621)
`nginx -t` creates the file /run/nginx.pid if it doesn't exist. `nginx -t` is
executed by ExecStartPre (in nginx.service) and creates /run/nginx.pid with the
correct SELinux context. However, when manually running `nginx -t` from the
cmdline, the SELinux transition for systemd services doesn't occur and
/run/nginx.pid is created with the wrong SELinux context. A workaround is to
make sure that the PID file is removed before starting nginx.
2015-10-04 08:32:14 +01:00
Jamie Nguyen
149abb601c Minor improvements to nginx.service and logrotate 2015-06-14 18:03:15 +01:00
Jamie Nguyen
ba7509ae8c Add TimeoutStopSec=5 and KillMode=mixed 2015-05-10 09:06:20 +01:00
Jamie Nguyen
705eb45a19 Add nginx-upgrade and improve nginx.service 2012-05-16 22:11:49 +01:00
Jamie Nguyen
c89e267a4e Revert "Minor change to systemd service file"
This reverts commit 516ea18ba1.
2012-03-04 17:57:56 +00:00
Jamie Nguyen
516ea18ba1 Minor change to systemd service file 2012-03-04 16:40:09 +00:00
Jamie Nguyen
6afa9eb88e Migrate to systemd and general spec cleanup. 2012-02-22 15:15:49 +00:00