[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to put XML Application Files in UNIX File Hierarchy?



Le mercredi 08 juin 2005 à 12:12 +0200, Christian Heller a écrit :
> In other words, CYBOL files are the source + executable + configuration

If they are configuration /var/lib looks appropriate. Though it is for
transient files or data only
( http://www.pathname.com/fhs/2.2/fhs-5.1.html )

/usr is read only and shareable so it is an issue if configuration is
embeded in the files (and one want a different configuration for each of
the hosts). http://www.pathname.com/fhs/2.2/fhs-4.1.html


Well i quoted the fhs for both of these as /var and /usr are pretty
standard nowadays and a lot of scripts and administrators rely on those
prerequesites long before it was normalized .


The newest FHS (2.3) would be for /var :
http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY

Some portions of /var are not shareable between different systems. For
instance, /var/log, /var/lock, and /var/run. Other portions may be
shared, notably /var/mail, /var/cache/man, /var/cache/fonts,
and /var/spool/news.

/var is specified here in order to make it possible to mount /usr
read-only. Everything that once went into /usr that is written to during
system operation (as opposed to installation and software maintenance)
must be in /var.

"Some portions of /var are not shareable between different systems. For
instance, /var/log, /var/lock, and /var/run. Other portions may be
shared, notably /var/mail, /var/cache/man, /var/cache/fonts,
and /var/spool/news.

/var is specified here in order to make it possible to mount /usr
read-only. Everything that once went into /usr that is written to during
system operation (as opposed to installation and software maintenance)
must be in /var."

or /etc :
"The /etc hierarchy contains configuration files. A "configuration file"
is a local file used to control the operation of a program; it must be
static and cannot be an executable binary."

We have a lot of "code" in etc , a lot of config file use a language of
some sort (even /etc/profile and Xsession use shell ...).


Hope it helps ... i vote for /etc , then /var and /usr .
Alban


PS: i am not debian DD and only tell from what i have seen , not from
packaging experience :(

/srv would fit (your your binaries looks like webapps ) though  files
there cannot be purged by packages scripts .... and it is not
implemented in debian by now.



Reply to: