Remove PID file in ExecStartPre, before starting nginx. nginx -t
creates the file /run/nginx.pid if it doesn't exist. This is fine in ExecStartPre, but if the user ran nginx -t
from the cmdline then the PID file will have the wrong SELinux context.
Please log in to add feedback.
This update has been submitted for testing by jamielinux.
This update has been pushed to testing.
This update has reached 14 days in testing and can be pushed to stable now if the maintainer wishes
This update has been submitted for stable by jamielinux.
This update has been pushed to stable.