home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 6061 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!ftpbox!mothost!lmpsbbs!rover!ralphw
  3. From: ralphw@comm.mot.com (Ralph Warchol STC Sys-Admin)
  4. Subject: Re: automounter vs auto.master
  5. Reply-To: ralphw@comm.mot.com
  6. Organization: Motorola LMPS Software Technology Center
  7. Date: Wed, 2 Sep 1992 14:00:41 GMT
  8. Message-ID: <1992Sep2.140041.15741@lmpsbbs.comm.mot.com>
  9. References: <1811ojINNe3c@cs.utexas.edu>
  10. Sender: news@lmpsbbs.comm.mot.com (Net News)
  11. Nntp-Posting-Host: 145.1.104.17
  12. Lines: 35
  13.  
  14. In article 1811ojINNe3c@cs.utexas.edu, fletcher@cs.utexas.edu (Fletcher Mattox) writes:
  15. >How does one get the automounter to notice that you have changed
  16. >auto.master?
  17. >
  18. >As best I can tell, you have to actually kill and restart the
  19. >automounter (yuck).  Is this really true?  If so, it orphans any
  20. >existing auto-mounted file systems, so they are not unmounted until
  21. >the next reboot.  So you may as well reboot the machine anyway.
  22. >Please tell me it ain't so.
  23. >
  24. >Thanks
  25. >Fletcher
  26.  
  27. If you add auto.master to your NIS maps, the changes are seen by automounter after a make.
  28. Here's the lines for your Makefile to do it:
  29.  
  30. auto.master.time: $(DIR)/auto.master
  31.         $(MAKEDBM) $(DIR)/auto.master $(YPDBDIR)/$(DOM)/auto.master;
  32.         @touch auto.master.time;
  33.         @echo "updated auto.master";
  34.         @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.master; fi
  35.         @if [ ! $(NOPUSH) ]; then echo "pushed auto.master"; fi
  36.  
  37. Add this line to bottom of the Makefile:
  38.  
  39. auto.master: auto.master.time
  40.  
  41. And add auto.master to your all: statement.
  42.  
  43. Good luck!
  44. ---
  45.         Ralph P. Warchol, Systems Administrator    | ralphw@comm.mot.com
  46.         Software Technology Center - LMPS Research | Ph:  708-576-8519  
  47.         Motorola Inc., Schaumburg, Illinois        | Fax: 708-576-3131
  48.  
  49.