2

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?

6
  • Which OS are you using?
    – Andrew
    Sep 17, 2012 at 1:40
  • @Andrew (Centos 6. Thx!)
    – elliot42
    Sep 17, 2012 at 1:45
  • 2
    If you're as anal about FHS compliance as I am, I've produced CentOS 6 RPMs of Graphite that are patched to be FHS-friendly: holyhandgrenade.org/blog/2011/10/… Sep 18, 2012 at 0:26
  • @jgoldschrafe Awesome! However, your rpm-python-carbon and rpm-python-whisper links appear to be broken? Neat patch, thanks!
    – elliot42
    Sep 18, 2012 at 3:45
  • I need to update that post. They're renamed to rpm-carbon and rpm-whisper on GitHub. Sep 19, 2012 at 20:38

2 Answers 2

2

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.

0

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

1
  • According to the FHS, /usr should not be writable (which would seem to preclude /usr/local/.../var). However, that installation link does have important tips for changing the install path, so thanks.
    – elliot42
    Sep 18, 2012 at 3:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .