Hi all, I don't know how useful this is going to be for anyone but here goes...

This patch adds a "--master" option to the automount daemon, which will read
a file (usually /etc/auto.master) and spawn a child automount for each entry.
It will manage the child processes and restart them if they exit (this is rate
limited - currently it won't start the same child within 5 secs of a previous
start). A HUP signal will cause it to re-read the master file, doing the right
thing with added, changed or removed entries.

The usefulness is in the fact that you only have to start one daemon at boot
time, and from then on you edit a file and send a HUP signal to re-configure
things (similar to inetd).

The patches were done to version autofs-4.0.0pre7.

There are a few other minor changes that I have made:

- I cross-compile for Linux/PPC 2.4 on my Sparc/Solaris-7 machine. I needed
  to make some changes for this to work e.g. passing MFLAGS on to sub-makes
  etc. - except for the changes to Makefile.rules, these shouldn't affect
  anyone else and should be considered.

- I changed modules/parse_sun.c to not pass on the "grpid" mount option - the
  Linux mounter didn't like it - this can be safely ignored.

- for some reason modules/lookup_program.c failed to compile - I think this
  is because I am using a very recent version of glibc - this could be ignored.

This is a very quick hack - don't expect too much. I have only tested it on
my embedded Linux/PPC 2.4 machine, and not very much at that. Have fun!
                                                                Murray...
--
Murray Jensen, CSIRO Manufacturing Sci & Tech,         Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662 7853
Internet: [EMAIL PROTECTED]

Hymod project: http://www.msa.cmst.csiro.au/projects/Hymod/

Attachment: msg02208/gz00000.gz
Description: autofs-diffs.gz

Reply via email to