Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20290 - /mnt/.init.d should be in /var/run
Summary: /mnt/.init.d should be in /var/run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-01 15:25 UTC by Cory Petkovsek
Modified: 2003-05-01 16:17 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 Cory Petkovsek 2003-05-01 15:25:10 UTC
The files in /mnt/.init.d should be in /var.  I'm sure there is a good reason,
however I saw nothing about it in the installation guide I went through.  The
files were obviously intentionally hidden from the pre-gentoo admin.  The only
way I discovered it was when I mounted something over /mnt and broke some
services.  Those services would no longer start until I straced the
/etc/init.d/* script and discovered files in /mnt/.init.d.  Please put that
stuff in /var and leave /mnt for mounting.

Reproducible: Always
Steps to Reproduce:
1.mount --bind /tmp /mnt
2./etc/init.d/gpm stop
3.umount /mnt
4./etc/init.d/gpm start

Actual Results:  
"gpm is already started", but it is not.

Expected Results:  
run time state should be in /var/state or /var/run or somewhere other than /mnt!

From fhs 2.2 standard which the lsb requires:

/mnt:
http://www.pathname.com/fhs/2.2/fhs-3.11.html
This directory is provided so that the system administrator may temporarily
mount a filesystem as needed. The content of this directory is a local issue and
should not affect the manner in which any program is run.

/var/run:
http://www.pathname.com/fhs/2.2/fhs-5.13.html
This directory contains system information data describing the system since it
was booted. Files under this directory must be cleared (removed or truncated as
appropriate) at the beginning of the boot process. Programs may have a
subdirectory of /var/run; this is encouraged for programs that use more than one
run-time file.
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2003-05-01 16:17:14 UTC
This is fixed in baselayout 1.8.6.x which'll be ready to be marked stable soon.