The directory /var/tmp is not automatically cleaned out when the system is rebooted. This is a fairly standard practice on IRIX systems. If you wish, you can configure IRIX to automatically clean out /var/tmp whenever the system is rebooted. Changing this standard policy is a fairly extreme measure, and many people expect that files left in /var/tmp are not removed when the system is rebooted. Do not make this change without warning users well in advance.
If you must change the policy, this is how to do it:
Give the users at least one week's notice, longer if possible.
# cd /etc/init.d
# cp rmtmpfiles rmptmpfiles2
# vi rmtmpfiles2
# make /var/tmp exist
if [ ! -d /var/tmp ]
then
rm -f /var/tmp # remove the directory
mkdir /var/tmp
fi
fi
statement add the following lines:
else
# clean out /var/tmp
rm -f /var/tmp/*
The complete block of commands should look something like this:
# make /var/tmp exist
if [ ! -d /var/tmp ]
then
rm -f /var/tmp # remove the directory
mkdir /var/tmp
else
# clean out /var/tmp
rm -f /var/tmp/*
fi
# cd ../rc2.d
# ln -s ../init.d/rmtmpfiles S59rmtmpfiles2