hi peter f.

> > > yes... if you could...please use some kind of detection schem
> > > where autofs will refuse to shutdown and just flag that /home
> > > is in use.... instead of going down anyway...and not be able
> > > to restart to remount the other dirs that the users now wants
> > > but can't get since autofs won't come back up without killing
> > > all the old processes...
> > 
> > Sure; currently that's what autofs uses if you send it SIGUSR1; would
> > it make sense if I made it behave that way for SIGTERM as well?
> 
> No, that doesn't make sense.  'SIGTERM' should terminate automount;
> that is what a termination signal is supposed to do.  

yes.... sigterm should kill the process...

am looking for another sig to send it to try to kill but don't if it
is used...since autofs does not restart if it did not "cleanly die"

> May be that people want to change the behaviour of their
> /etc/rc.d/autofs resp.  (here on SuSE Linux) their /sbin/init.d/autofs
> shell-script used to start/restart/stop the autofs ssub system?  
> The version distributed with SuSE contains two special functions 
> for the SuSE and Debian distributions.  What about Red Hat, Caldera 
> and others?

attached below for fun is the rh-5.x /etc/rc.d/init.d/autofs script

( too big, guess I'll put it up on the website instead... if you care to see it )
        http://www.Linux-Consulting.com/Amd_AutoFS/init.d_autofs

note that it uses SIGTERM ( stop ) and SIGUSR2 ( reload )

have fun
alvin

Reply via email to