I am currently working on a similar problem. Setting up a system where the
apache acesses an SMB share as DocumentRoot I came to the point that the
corrosponding NT-machine wasn't booted up and the automounter tried to
mount it wich resulted in an error. After booting up the NT-machine it's
share couldn't be mounted anymore, because the mount-point was alreayd
mounted to an unresolved SMB share.
I'm planning to solve this as follows:
Set up an entry for each SMB-share the auto.master, instead of one entry
for multiple shares.
This enables me to shut down the automount-deamon for a single share
without disturbing the other mount-points.
Write a script wich (beeing called once a minute) checks for invalid
mount-points via exploring mtab or so, and, in case it found one, shuts
down the corrsponding deamon, unmounts the mount-point and restarts the
deamon.
Do you think this is a practical solution? I'm not so experienced in unix,
so I wonder if this is an acceptable way to solve problems of this kind.

Still this still wouldn't solve my problem that the httpd shuts down on
it's start when it can't access it's DocumentRoot on the NT-machine.
How would you judge the idea of setting a link to a local dirctory
containing a single "index.htm", and redirecting this link to the
NT-machine's mount point when it's getting mounted and redirecting it to
the dummy directory on unmount?
Maybe this dirty trick could be worked around by using the 'union' feature
wich I heard about?
Does anyone know where I can find documentation for the 'union' feature?

Thanks in advance,
Philipp Klostermann

Reply via email to