Thus spoke Simon Liddington on 19-Feb-99 :
> Hi,
> 
> I am using the autofs-3.1.1-4.i386.rpm package on redhat 5.2.
> 
> If I restart the automounter with these commands it stops but doesn't
> restart again.
> 
> /etc/rc.d/init.d/autofs stop
> /etc/rc.d/init.d/autofs start
> 
> If I try to start it by hand and type
> 
> /usr/sbin/automount --timeout 60 /net file /etc/auto.net
> 
> then it returns immediately and does nothing.
> 
> It seems to only start if started at boot up.

type  
 /etc/rc.d/init.d/autofs status

it gives you, which point moints a configured and with are active e.g
something like:

Configured Mount Points:
------------------------
automount /home yp auto.home
automount /imports yp auto.imports

Active Mount Points:
--------------------
automount /home yp auto.home
automount /imports yp auto.imports


If you stop the automounter with the script and the mount points are still in
use, the automounter process will  be killed and if you do give a started
afterwards it  will not be started again on the mount points which are still in
use :)  You have to kill all
processes, which use the automounter mount point, kill eventuall all still
running automount processes. Then you can start new.

This is a weekness of the autofs implementation. I am not an expert, just a
user of autofs, but I guess it has to do with the fact, that part of the autofs
runs in the kernel. The  amd automounter was nicer with that respect: you
could kill and restart it and it worked fine. 


Frithjof


        "If you see someone without a smile, give him one of yours"

Frithjof Anders
Institut  fuer Festkoerperphysik
Technische Universitaet Darmstadt
Hochschulstr. 6
64289 Darmstadt, GERMANY


Tel  +49 (6151) 16-5235    email:  [EMAIL PROTECTED]
FAX  +49 (6151) 16-3681

  

Reply via email to