home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / aix / 8971 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!rs530.ncs.mainz.ibm.com!hubert
  3. From: hubert@rs530.ncs.mainz.ibm.com (Bernhard Zeller/131000)
  4. Subject: Re: ehen to do things at strtup
  5. Sender: @watson.ibm.com
  6. Message-ID: <1992Aug21.121653.36675@watson.ibm.com>
  7. Date: Fri, 21 Aug 92 12:16:53 GMT
  8. Reply-To: zeller@mazvm02.vnet.ibm.com
  9. Organization: IBM Germany, AIX Support Germany
  10. Lines: 36
  11.  
  12. To clean up /tmp at startup in AIX 3.2 you should edit '/sbin/rc.boot'.
  13. Search for 'inittab'. You should find following contents:
  14.  
  15.                         3)      # Phase 3 inittab finish boot - disk
  16.  
  17.                         mount | grep ' /usr ' | grep ' nfs '
  18.                         if [ "$?" -eq 0 ]
  19.                         then
  20.                                 # Start the portmapper
  21.                                 /usr/etc/portmap &
  22.                                 /usr/etc/rpc.statd &
  23.                         fi
  24.  
  25.                         if [ -r /etc/filesystems ]
  26.                         then
  27.                                 fsck -fp /tmp
  28.                                 echo "Mounting /tmp"
  29.                                 mount /tmp
  30.                         else
  31.                                 fsck -fp /dev/hd3
  32.                                 echo "Mounting /tmp"
  33.                                 mount -olog=/dev/hd8 /dev/hd3 /tmp
  34.                         fi
  35.  
  36.  
  37. Add after the last 'fi' above following lines:
  38.  
  39.                         rm -rf /tmp/*
  40.                         rm -rf /tmp/.??*
  41.  
  42. The next lines in rc.boot should be:
  43.  
  44.                         # Volume group sync.
  45.                         /etc/syncvg -v rootvg &
  46.  
  47. Bernhard Zeller
  48.