diff options
author | Louis Sautier <sbraz@gentoo.org> | 2024-10-19 16:36:26 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2024-10-19 16:44:24 +0200 |
commit | 6f136d56a588639697e42a27391f83483d333e0e (patch) | |
tree | 955d9c888ed590f53a8aef517a0f8d0df3b6b95c /www-servers | |
parent | dev-ml/reason: add 3.12.0 (diff) | |
download | gentoo-6f136d56a588639697e42a27391f83483d333e0e.tar.gz gentoo-6f136d56a588639697e42a27391f83483d333e0e.tar.bz2 gentoo-6f136d56a588639697e42a27391f83483d333e0e.zip |
www-servers/nginx: fix systemd unit to create /run/nginx/ (#941784)
108a642ef4da broke the systemd service, by moving the PID file to
/run/nginx/ without creating the directory, resulting in 'open()
"/run/nginx/nginx.pid" failed (2: No such file or directory)'
Bug: https://bugs.gentoo.org/939560
Closes: https://bugs.gentoo.org/941784
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/nginx/files/nginx.service-r1 | 1 | ||||
-rw-r--r-- | www-servers/nginx/nginx-1.26.2-r4.ebuild (renamed from www-servers/nginx/nginx-1.26.2-r3.ebuild) | 0 | ||||
-rw-r--r-- | www-servers/nginx/nginx-1.27.2-r1.ebuild (renamed from www-servers/nginx/nginx-1.27.2.ebuild) | 0 |
3 files changed, 1 insertions, 0 deletions
diff --git a/www-servers/nginx/files/nginx.service-r1 b/www-servers/nginx/files/nginx.service-r1 index d87081788091..74b023147587 100644 --- a/www-servers/nginx/files/nginx.service-r1 +++ b/www-servers/nginx/files/nginx.service-r1 @@ -5,6 +5,7 @@ After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/nginx/nginx.pid +RuntimeDirectory=nginx ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx ExecStartPost=/bin/sleep 0.1 diff --git a/www-servers/nginx/nginx-1.26.2-r3.ebuild b/www-servers/nginx/nginx-1.26.2-r4.ebuild index df9a7fc03956..df9a7fc03956 100644 --- a/www-servers/nginx/nginx-1.26.2-r3.ebuild +++ b/www-servers/nginx/nginx-1.26.2-r4.ebuild diff --git a/www-servers/nginx/nginx-1.27.2.ebuild b/www-servers/nginx/nginx-1.27.2-r1.ebuild index 1a85e9d9c4ec..1a85e9d9c4ec 100644 --- a/www-servers/nginx/nginx-1.27.2.ebuild +++ b/www-servers/nginx/nginx-1.27.2-r1.ebuild |