Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Which OS are you using? – Andrew Sep 17 '12 at 1:40
@Andrew (Centos 6. Thx!) – elliot42 Sep 17 '12 at 1:45
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:… – jgoldschrafe Sep 18 '12 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 '12 at 3:45
I need to update that post. They're renamed to rpm-carbon and rpm-whisper on GitHub. – jgoldschrafe Sep 19 '12 at 20:38
up vote 2 down vote accepted

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.

share|improve this answer

Whenever installing a package from source, I would keep it with the following layout:

|-- bin
|   |-- 
|   |-- 
|   `-- 
|-- lib
|   |-- 
|   |-- 
|   `-- 
|-- conf (or etc)
|   |-- 
|   |-- 
|   `-- 
`-- var
    |-- lock
    |-- log
    `-- run

You may also take a look at this:

share|improve this answer
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 '12 at 3:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.