Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275164 - www-servers/nginx - init script bug(?) - /var/tmp/nginx
Summary: www-servers/nginx - init script bug(?) - /var/tmp/nginx
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 10:54 UTC by Piotr Karbowski (RETIRED)
Modified: 2010-01-03 20:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2009-06-23 10:54:06 UTC
On my boxes /var/tmp is link to /tmp, /tmp is tmpfs so after reboot it is clean (empty), nginx can create /var/tmp/nginx/* but not /var/tmp/nginx so I hack init script to do it

configtest() {
	ebegin "Checking nginx' configuration"
	/usr/sbin/nginx -c /etc/nginx/nginx.conf -t
	#Test if /var/tmp/nginx exist.
	/usr/bin/test -d /var/tmp/nginx || /bin/mkdir /var/tmp/nginx
	/usr/bin/test -d /var/tmp/nginx && /bin/chmod 770 /var/tmp/nginx
	/usr/bin/test -d /var/tmp/nginx && /bin/chown nginx:nginx /var/tmp/nginx
	eend $? "failed, please correct errors above"
}

Also - chmod - after merging nginx it making /var/tmp/nginx dir but why with 755 perms? My umask is 077.

//Sorry about my english///

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-27 07:25:03 UTC
Thanks for posting your init script modification. Assigning this suggestion to nginx maintainer for review.
Comment 2 Johan Bergström 2009-11-12 13:54:37 UTC
I'm not sure this is the right scope to solve these issues. I can image that an empty directory structure would involve more similar issues, and therefore should probably be bundled together in your 'own' init script. 
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-03 20:06:02 UTC
I agree with comment #2 that this is something you have to deal with in your own setup. WONTFIXing.