home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!rs530.ncs.mainz.ibm.com!hubert
- From: hubert@rs530.ncs.mainz.ibm.com (Bernhard Zeller/131000)
- Subject: Re: ehen to do things at strtup
- Sender: @watson.ibm.com
- Message-ID: <1992Aug21.121653.36675@watson.ibm.com>
- Date: Fri, 21 Aug 92 12:16:53 GMT
- Reply-To: zeller@mazvm02.vnet.ibm.com
- Organization: IBM Germany, AIX Support Germany
- Lines: 36
-
- To clean up /tmp at startup in AIX 3.2 you should edit '/sbin/rc.boot'.
- Search for 'inittab'. You should find following contents:
-
- 3) # Phase 3 inittab finish boot - disk
-
- mount | grep ' /usr ' | grep ' nfs '
- if [ "$?" -eq 0 ]
- then
- # Start the portmapper
- /usr/etc/portmap &
- /usr/etc/rpc.statd &
- fi
-
- if [ -r /etc/filesystems ]
- then
- fsck -fp /tmp
- echo "Mounting /tmp"
- mount /tmp
- else
- fsck -fp /dev/hd3
- echo "Mounting /tmp"
- mount -olog=/dev/hd8 /dev/hd3 /tmp
- fi
-
-
- Add after the last 'fi' above following lines:
-
- rm -rf /tmp/*
- rm -rf /tmp/.??*
-
- The next lines in rc.boot should be:
-
- # Volume group sync.
- /etc/syncvg -v rootvg &
-
- Bernhard Zeller
-