Skip to content
Advertisement

In Debian, where in the filesystem would a daemon provide dynamic measurement results?

For a diploma thesis, I am developing a Linux daemon that runs on Debian and is also Debian-packaged for easy administration. It reads various measurement results via I²C. The results shall be shown on a website.

In Debian, where in the filesystem would a daemon output such measurement data to be updated regularly and read from other applications or the user? To clearify, logging is done seperately, I would just have a few files containing the current values (just like you can read the CPU temperature in /proc).

From the FHS, these seem to be most fitting:

  • /var/lib or /var/spool
  • /srv
  • /tmp

Where should it go?

Advertisement

Answer

/var is structure for variable file. So keep it in /var/lib/you_application/

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement