Summary: | www-servers/nginx-1.2.6: init script fails to create missing directories | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guillaume Castagnino <casta> |
Component: | [OLD] Server | Assignee: | Benedikt Böhm (RETIRED) <hollow> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugzie, dev-zero |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | nginx init fix |
Got the same issue after upgrade. grr, stupid checkpath ... fixed, thanks! |
Created attachment 333400 [details] nginx init fix There is a change in the latested nginx ebuild that stops using keepdir to keep the /var/tmp/nginx/{client,proxy,fastcgi,scgi,uwsgi} directories, and create it within the init script. Problem: checkpath does not create recursively the directories. But /var/tmp/nginx/ is missing, so creating the {client,proxy,fastcgi,scgi,uwsgi} subdirectories fails (and nginx fails to start): # /etc/init.d/nginx restart * checkpath: mkdir: No such file or directory * checkpath: mkdir: No such file or directory * checkpath: mkdir: No such file or directory * checkpath: mkdir: No such file or directory * checkpath: mkdir: No such file or directory * Checking nginx' configuration ... nginx: [emerg] mkdir() "/var/tmp/nginx/client" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] mkdir() "/var/tmp/nginx/client" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed * failed, please correct errors above [ !! ] * ERROR: nginx failed to stop The fix is quite simple, just adding one checkpath (see attached patch).