tmp directories.

Randy Hron rwhron at earthlink.net
Sat Jul 28 20:57:57 PDT 2001


> Should the contents of /tmp not be deleted as part of rcS.d or rc[06].d? 
> Or do we not need a tmpwatcher cron or something?  It's just that stuff
> seems to hang around in /tmp for quite a while and cause problems.

I do this in /etc/rcS.d/S333cleantmp:  Nothing magic here:

#!/bin/sh
# Begin /etc/init.d/cleantmp
 
case "$1" in
        start)
                rm -rf /tmp
                mkdir /tmp
                chmod 1777 /tmp
                ;;
 
        status)
                ls -ld /tmp
                df -k /tmp
                ;;
 
        *)
                echo "Usage: $0 {start|status}"
                exit 1
                ;;
 
esac
 
# End /etc/init.d/cleantmp

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list