Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 647
    • Issues 647
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 178
    • Merge Requests 178
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #10258

Closed
Open
Opened Apr 15, 2019 by Miguel Da Silva@midas
  • Report abuse
  • New issue
Report abuse New issue

Nginx init-script not working when /var/tmp is bind-mounted to /tmp

The nginx init script requires an existing directory /var/tmp/nginx.
In case the /var/tmp directory is bind-mounted to /tmp and therefore wiped on each reboot, nginx refuses to start.

It is suggested to create the missing directory in case it is not there yet.

See the proposal in the attached patch file

(from redmine: issue id 10258, created on 2019-04-15, closed on 2019-06-03)

  • Relations:
    • relates #9364
  • Changesets:
    • Revision 8ded1028 by Natanael Copa on 2019-06-21T10:20:45Z:
Revert "main/nginx: move /var/lib/nginx/tmp to /var/tmp/nginx"

FHS-3.0 says that /var/tmp should survive reboots, but for it is common
practice to ignore FHS for security reasons and wipe dirs that are world
writable.

There is no good reason to store nginx data under a world writable
directory, so move it back to /var/lib/nginx/tmp. Other distros does
something similar.

fixes #9246
fixes #10258
ref #9364

This reverts commit d6d624a149ca62af8679baf9cc99ce1354c190f0.
  • Uploads:
    • 0001-nginx-missing-directory.patch
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
3.11.0
Milestone
3.11.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
3
Labels
Normal Resolved type:bug
Assign labels
  • View project labels
Reference: alpine/aports#10258