Michael Matz wrote:
On Tue, 22 Mar 2016, Michal Kubecek wrote:
Well, I strongly disagree. What you propose goes far beyond the quote from FHS you tried to use to support your proposal.
Currently, the common practice for servers like FTP servers, TFTP servers, HTTP servers etc. is to create a logically named subdirectory under /srv, set its permissions as needed and point the default configuration of the daemon to it.
Important observation: this common practice does not contradict the FHS quote at all. However, your proposal strictly forbids it. Therefore such rule has no support in the FHS quote.
I don't think Ludwigs proposal was meant to forbid this practice. As you say, it makes sense to create empty directories under /srv and let the config point to them. But a set of files coming from a package that's supposed to be a web app (i.e. not just server software with a pre-configured but empty directory, but rather a collection of data and code files) should not be placed under /srv/ for the reason Ludwig stated.
The intended scope was certainly restricted to "web applications". The statements about /srv are indeed generic though. I agree that pre-creating empty directories in /srv makes sense and it should be safe enough as rpm won't remove them on uninstall if they are not empty. It's probably worth mentioning that Fedora nevertheless disallows anything in /srv, even default configs pointing there. So we'd follow a more pragmatic approach. Unfortunately we don't have a generic section about file system layout. So until someone wants to come up with a proposal for that how about the following? Web applications packaged in openSUSE should place their files in /etc, /usr, /var etc depending on type just like any other application would do. In general a package must not install, remove or otherwise modify /srv content as it's use is reserved to the admin according to FHS¹. In openSUSE it's ok to have a package pre-create an empty directory in /srv if the default configuration of the software points there. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org