commit | a62bb7cc856157d6743eacdc049a9788ec8abb6f | [log] [tgz] |
---|---|---|
author | Konstantin Pavlov <thresh@nginx.com> | Tue May 26 17:57:46 2020 +0300 |
committer | Konstantin Pavlov <thresh@nginx.com> | Tue May 26 17:57:46 2020 +0300 |
tree | b1720379d2604c17154458c9ef890fdb3a348b85 | |
parent | 01922426c7bfba09a0ba95e8c96e7e6f11f99e79 [diff] |
systemd: do not rely on racy heuristics to determine master PID This fixes reloads and stops when systemd is unable to guess master process PID due to a race described in https://trac.nginx.org/nginx/ticket/1897 While we wait for a proper fix is introduced in either nginx or systemd via Type=forking, the workaround is not to rely on possibly unset variables, but hardcode the path to PID file instead where we need it.