[opensuse-factory] FSH: mysql & tftp
Just came across a message about mysql: <snip> Important: Don't forget to _backup_ your /var/lib/mysql directory before testing! <snip> The warning reminded me that by default, the mysql-data resided under /var/lib/mysql/ Which makes me wonder, according to the FSH, data belonging to servers/services should reside under /srv, just like www, ftp, tftp.... Some releases ago, apache default doc-root moved from /var/.. or /home/www to the place where it should be: /srv Why has this not been done yet for mysql and tftp? Hans. -- pgp-id: 926EBB12 pgp-fingerprint: BE97 1CBF FAC4 236C 4A73 F76E EDFC D032 926E BB12 Registered linux user: 75761 (http://counter.li.org) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
Hans Witvliet wrote:
The warning reminded me that by default, the mysql-data resided under /var/lib/mysql/
Which makes me wonder, according to the FSH, data belonging to servers/services should reside under /srv, just like www, ftp, tftp....
Good point. OTOH, which distributions use /srv/mysql? /var/lib/mysql seems to be quite widely used. Anyway, please put this request to bugzilla.novell.com and assign to mmarek@suse.de. Thanks, Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
On Tue, 2006-06-27 at 09:15 +0200, Michal Marek wrote:
Hans Witvliet wrote:
The warning reminded me that by default, the mysql-data resided under /var/lib/mysql/
Which makes me wonder, according to the FSH, data belonging to servers/services should reside under /srv, just like www, ftp, tftp....
Good point. OTOH, which distributions use /srv/mysql? /var/lib/mysql seems to be quite widely used. Anyway, please put this request to bugzilla.novell.com and assign to mmarek@suse.de.
Thanks, Michal
Done: #188713 Certainly, it can be done manually afterwards. But when working for a department who is claiming to follow international standards and so, one finds lots of sysadmins unwilling, ignorant or just plain lazy to do so. Better make it default under /srv I would suggest /srv/mysql (obvious) And /srv/tftp instead of /srv/tftpboot, as tftp can be used not only for booting but for other purposes as well, like upgrading cisco-firmware. Hans -- pgp-id: 926EBB12 pgp-fingerprint: BE97 1CBF FAC4 236C 4A73 F76E EDFC D032 926E BB12 Registered linux user: 75761 (http://counter.li.org) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Witvliet wrote:
On Tue, 2006-06-27 at 09:15 +0200, Michal Marek wrote:
Hans Witvliet wrote:
The warning reminded me that by default, the mysql-data resided under /var/lib/mysql/
Which makes me wonder, according to the FSH, data belonging to servers/services should reside under /srv, just like www, ftp, tftp.... Good point. OTOH, which distributions use /srv/mysql? /var/lib/mysql seems to be quite widely used. Anyway, please put this request to bugzilla.novell.com and assign to mmarek@suse.de.
I don't think any other distribution currently uses /srv although it's defined as the standard in FHS [1] (but most distributions don't care about LSB anyway, be it Redhat, Gentoo or - most notably - Debian) [1] http://www.pathname.com/fhs/ Debian and Gentoo both have /var/www, which is definitely a very bad choice wrt standards as it's just nowhere in the FHS (/var/lib/www would have been "ok" IMO).
Done: #188713
Certainly, it can be done manually afterwards. But when working for a department who is claiming to follow international standards and so, one finds lots of sysadmins unwilling, ignorant or just plain lazy to do so.
There isn't really a standard for that. Even if you consider the FHS, here: http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYS... I think it's still a bit vague. And, as said, not many distributions care a lot about FHS and LSB :\
Better make it default under /srv I would suggest /srv/mysql (obvious)
Right, would make sense. OTOH, what's the default directory being set by MySQL builds ? At first glance, /srv/mysql would make sense, but if SUSE Linux is the only distribution on the planet that uses /srv/mysql and all the others use /var/lib/mysql (and so do the mysql.com builds), then I'm not sure it would be such a good idea... cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <pascal.bleser@skynet.be> <guru@unixtech.be> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEoaCkr3NMWliFcXcRAgnSAJwJF5/mrfCfkkq3IC2F649aeHR8KACgmAB+ 6hfWwRp8B8TE31pR3lcZvEk= =W+38 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
On Tue, Jun 27, 2006 at 11:18:28PM +0200, Pascal Bleser wrote:
OTOH, what's the default directory being set by MySQL builds ? At first glance, /srv/mysql would make sense, but if SUSE Linux is the only distribution on the planet that uses /srv/mysql and all the others use /var/lib/mysql (and so do the mysql.com builds), then I'm not sure it would be such a good idea...
Would a symlink from /var/lib/mysql to /srv/mysql work? Or would there be issues with some things not working, because it is a symlink? -- houghi Please to not toppost http://houghi.org My experience with SUSE You can have my keyboard ... if you can pry it from my dead, cold, stiff fingers --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
Hi, houghi schrieb:
Would a symlink from /var/lib/mysql to /srv/mysql work? Or would there be issues with some things not working, because it is a symlink?
IMHO compatibility symlinks are "ugly" and should be avoided where possible. Changing the working directory of software packages is a very difficult thing. It has the potential to upset quite a lot of users. What some of you might possibly know that there are many rumours out there that "SUSE uses different directory layouts than the rest of the world and moves config files and working directories around all the time". This is really one of the typical things that non-SUSE users frequently say about SUSE. With that in mind, I propose that nothing is changed unless the current solution really *violates* the FHS, which I doubt. Moving things around just because the new solution would comply a little bit better should be avoided if the current solution is also compliant. Andreas Hanke --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory-help@opensuse.org
participants (5)
-
Andreas Hanke
-
Hans Witvliet
-
houghi
-
Michal Marek
-
Pascal Bleser