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

I'm writing a custom application that will be run as a service/daemon. According to convention, the binaries for it should be in /opt/appname. However, where do I put files such as:

  • Config files
  • Cache and storage
  • Logs
share|improve this question
up vote 2 down vote accepted

If you're using /opt/<appname> for your app then config files go under /etc/opt, and the rest goes under /var/opt.


share|improve this answer

Have a look at the Filesystem Hierarchy Standard which youd tell you what you want to know.

share|improve this answer

Ideally, you don't care where it's installed, and you can configure the app at build or install time. If, for example, you're building an application that will run on Debian, you can create a .deb package and skip this entire question.

share|improve this answer
Sure, the server admin can configure the app any way he wants, but that's precisely what I have to do, to not only develop but also install the app. – Bart van Heukelom Dec 21 '10 at 22:29

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.