4 ms·
Would /srv be for files that are served up mostly unmodified? Or would you also put the database for a web application under, for example /srv/db? In a sense,
by derekp7 4y ago
Would /srv be for files that are served up mostly unmodified? Or would you also put the database for a web application under, for example /srv/db? In a sense, the database contains objects that get served up but they get transformed by the web app, so it seems they should go into something under /var (like /var/lib/data/[db_vendor_name]).
- theandrewbailey 4y ago> This main purpose of specifying this is so that users may find the location of the data files for particular service,... If I read the docs right, if a database needs to keep data permanently, /srv seems to be an ideal place. It's not restricted to static files being served on a network, just where data (regardless of format or transformations) should be stored. More abstractly, if any daemon, service, or file share needs to store any data that is read/written to/from a network, that data should be in /srv. Probably.