Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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.

source

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

 
discard

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.