A package I'm using (Graphite) insists on installing into /opt/graphite
.
Should logs go into /var/opt/graphite/log
, or /var/log/graphite
?
Presume we want to be as FHS as possible. I'm using CentOS 6--would it vary by *NIX/distro?
A package I'm using (Graphite) insists on installing into /opt/graphite
.
Should logs go into /var/opt/graphite/log
, or /var/log/graphite
?
Presume we want to be as FHS as possible. I'm using CentOS 6--would it vary by *NIX/distro?
Yes, it would vary by */NIX/distro. Therefore, I'd put them in /opt/graphite/log : Software that install in opt should not expect /var/anything to be available.
For example, /var/opt does not even exist on a default FreeBSD installation.
However, nowadays /var/log/graphite is a safe bet : I haven't seen logs in /usr/adm/logs or /var/adm for a long time.
Whenever installing a package from source, I would keep it with the following layout:
/usr/local/<package_name>
|-- bin
| |--
| |--
| `--
|-- lib
| |--
| |--
| `--
|-- conf (or etc)
| |--
| |--
| `--
`-- var
|-- lock
|-- log
`-- run
You may also take a look at this: http://graphite.readthedocs.org/en/0.9.10/install.html#default-installation-layout