Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15192 - baselayout should not use /var/state
Summary: baselayout should not use /var/state
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL: http://www.pathname.com/fhs/2.2/fhs-5...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-05 22:17 UTC by SpanKY
Modified: 2003-02-28 09:50 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 SpanKY gentoo-dev 2003-02-05 22:17:11 UTC
it should instead use /var/lib and /var/run ... 
refer to FHS here: 
http://www.pathname.com/fhs/2.2/fhs-5.2.html (overview) 
http://www.pathname.com/fhs/2.2/fhs-5.8.html (/var/lib) 
http://www.pathname.com/fhs/2.2/fhs-5.13.html (/var/run)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-08 02:23:50 UTC
I can see the point of /var/lib, but what has /var/run have to do with
/var/state/init.d ?  There is no pid, whatever in there.
Comment 2 SpanKY gentoo-dev 2003-02-09 16:08:12 UTC
well, since init.d should not really be maintained across reboots, it seems like it would fit 
better in /var/run than /var/lib 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 17:27:10 UTC
Put it this way .. since the data is no longer on tmpfs, most of it do not
need to be regenerated on reboot.

If you want to be technical:

1)  after/, before/, need/, provide/, use/

  These can be in /var/cache, as they only need to be updated if
  /etc/runlevels/ change, and are time consuming in calculation (ok,
  not that much anymore ...

2)  broken/, depcache  options/, snapshot/, softlevel, softscripts/, started/

  These do variable during boot, and could be in /var/run.

Problem that I have with splitting these, will be that it will require
some extra 'AI' to handle different states (tmpfs, notmps...), and make
things more complex.
Comment 4 SpanKY gentoo-dev 2003-02-16 20:26:33 UTC
my point wasnt to say to split up everything or to use just /var/lib or /var/run for whatever reason, i just dont want it using /var/state since it isnt mentioned anywhere in FHS ...

where you choose to put it (other than /var/state) is fine with me

/var/run seemed like a good choice because it 'contains system information data describing the system since it was booted' ... and although you can start/stop scripts after boot, /var/run still kind of works because it isnt *just* for pid files ...

/var/lib looks like a much better choice because it 'holds state information pertaining to an application or the system' ... and it can be retained across reboots so that you dont have to regenerate it like you pointed out since /var/lib allows for that
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-28 09:50:11 UTC
Fixed on CVS.