LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Logging/Data; where to store (https://www.linuxquestions.org/questions/programming-9/logging-data%3B-where-to-store-501695/)

Wim Sturkenboom 11-14-2006 11:01 PM

Logging/Data; where to store
 
Till now, my apps wrote files in the user's directory. For a new app, I need to store a data file somewhere where all users of a system can create, read and update a file.

/var seems to be the correct place, but I'm not sure how to go about it (with regards to 'standards').
1)
Is /var the correct place ?
2)
Any specific subdirectory? The data in the file can either be seen as data or as log information. From that, either /var/lib/myapp/myfile or /var/log/myapp/myfile seem to be feasable. Or is there another one with regards to 'standards'?

kstan 11-15-2006 12:26 AM

why don't choose /opt/yourapp, /usr/local/yourapp, this is recommended place if you don't want to use /var.
Ks


All times are GMT -5. The time now is 01:47 PM.