On Thursday 29 May 2014, Werner Flamme wrote:
[29.05.2014 17:31] [Andrey Borzenkov]:
В Wed, 28 May 2014 21:02:12 -0400
Cristian Rodríguez
пишет: El 28/05/14 20:25, Ruediger Meier escribió:
So it's not possible to umount(2) /srv forever? "systemctl start apache" would mount it again or what? Even if I have mounted something else there in the meanwhile? That's insane. Don't add such stupid deps per default.
That's not how things work, if you manually umount the filesystem it should stay that way.
Actually that's how things work. If you put "Requires=srv.mount" in apache.service, starting apache.service will attempt to mount /srv.
Which works as designed and documented.
Of course it does not mean design cannot be improved ... :)
In this case I wonder how one will catch all cases... Maybe /srv is on the root filesystem, but /srv/www is mounted separately, /srv/ftp also, and /srv/git and other subdirs too. How can this be configured?
Or /srv is on the root fs, and only /srv/ftp and /srv/www are mounted separately, other subdirs like /srv/tftpboot are kept on the root fs.
BTW AFAIK apache is fine if it starts with empty /srv. You can fill or mount it later. It would just serve a nice error page when it can't find document roots. That's surely better than "port 80 not reachable" ... So the "apache Requires=srv.mount" example is just non-sense. And if you really want to speed up boot then you could mount /srv and start apache in arbitrary order. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org