Hi,
I would like to know if there is any rule about using /srv ? Firebird package need a place to store databases files, and reading the FHS rules, it seems that it is the right place for that instead of /var/lib
philippe makowski wrote:
Hi,
I would like to know if there is any rule about using /srv ? Firebird package need a place to store databases files, and reading the FHS rules, it seems that it is the right place for that instead of /var/lib
-- Fedora-packaging mailing list Fedora-packaging@redhat.com https://www.redhat.com/mailman/listinfo/fedora-packaging
Other dmbs use /var/lib. Why is Firebird different? It was my understanding that we never touch /srv.
On Fri, Jul 10, 2009 at 10:50 AM, Jon Cieslalimb@jcomserv.net wrote:
Other dmbs use /var/lib. Why is Firebird different? It was my understanding that we never touch /srv.
/srv is for site-specific data, which the site can layout however they like. We cannot place anything in /srv. If the user wishes to do so, they can change the configuration of the package (or if it doesn't support that, bind mount the dir, symlink it, or whatever :) ).
On 07/10/2009 10:48 AM, philippe makowski wrote:
Hi,
I would like to know if there is any rule about using /srv ? Firebird package need a place to store databases files, and reading the FHS rules, it seems that it is the right place for that instead of /var/lib
https://fedoraproject.org/wiki/Packaging/Guidelines#No_Files_or_Directories_...
Basically, you can't use /srv in Fedora packages.
~spot
2009/7/10 Tom "spot" Callaway tcallawa@redhat.com:
On 07/10/2009 10:48 AM, philippe makowski wrote:
Hi,
I would like to know if there is any rule about using /srv ? Firebird package need a place to store databases files, and reading the FHS rules, it seems that it is the right place for that instead of /var/lib
https://fedoraproject.org/wiki/Packaging/Guidelines#No_Files_or_Directories_...
Basically, you can't use /srv in Fedora packages.
ok it was just a question thanks answering
2009/7/10 Tom "spot" Callaway tcallawa@redhat.com:
https://fedoraproject.org/wiki/Packaging/Guidelines#No_Files_or_Directories_... Basically, you can't use /srv in Fedora packages.
one more question to be sure is it possible that the package create /srv/firebird for instance with %config(noreplace) ? or in other word, is that possible to create a directory under /srv that would not be own after by the package ?
philippe makowski wrote:
2009/7/10 Tom "spot" Callaway tcallawa@redhat.com:
https://fedoraproject.org/wiki/Packaging/Guidelines#No_Files_or_Directories_... Basically, you can't use /srv in Fedora packages.
one more question to be sure is it possible that the package create /srv/firebird for instance with %config(noreplace) ? or in other word, is that possible to create a directory under /srv that would not be own after by the package ?
-- Fedora-packaging mailing list Fedora-packaging@redhat.com https://www.redhat.com/mailman/listinfo/fedora-packaging
That would be accomplished with %ghost, not %config(noreplace), but still a no-no.
On Fri, 2009-07-10 at 18:52 +0200, philippe makowski wrote:
one more question to be sure is it possible that the package create /srv/firebird for instance with %config(noreplace) ? or in other word, is that possible to create a directory under /srv that would not be own after by the package ?
No. We can't assume what the site admin wants to do with /srv/. Perhaps they have an internal software project called 'firebird' and want to store data in /srv/ for it. By having a package touch things in /srv/ or expect to read things from /srv/ we would be trampling on the site admin's local config and could cause data loss or corruption.
/srv/ is a no fly zone, period.
On 07/10/2009 12:52 PM, philippe makowski wrote:
one more question to be sure is it possible that the package create /srv/firebird for instance with %config(noreplace) ? or in other word, is that possible to create a directory under /srv that would not be own after by the package ?
Please don't do this. Packages must own all directories they create and packages can't own directories in /srv.
~spot
2009/7/10 Tom "spot" Callaway tcallawa@redhat.com:
On 07/10/2009 12:52 PM, philippe makowski wrote:
one more question to be sure is it possible that the package create /srv/firebird for instance with %config(noreplace) ? or in other word, is that possible to create a directory under /srv that would not be own after by the package ?
Please don't do this. Packages must own all directories they create and packages can't own directories in /srv.
Thanks for all your answers all is clear
packaging@lists.fedoraproject.org