Package: initscripts
Version: 2.88dsf-13.1
Severity: minor

I've set TMPTIME to 1. Most of files in /tmp are deleted but three of them stay 
for ever, day after day. They're named knoppix1.tmp, knoppix2.tmp and 
knoppix3.tmp

-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils               8.5-1            GNU core utilities
ii  debianutils             3.4              Miscellaneous utilities specific t
ii  libc6                   2.13-38          Embedded GNU C Library: Shared lib
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  mount                   2.17.2-9         Tools for mounting and manipulatin
ii  sysv-rc                 2.88dsf-13.1     System-V-like runlevel change mech
ii  sysvinit-utils          2.88dsf-13.1     System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs               1.41.12-4stable1 ext2/ext3/ext4 file system utiliti
ii  psmisc                  22.11-1          utilities that use the proc file s

initscripts suggests no packages.

-- Configuration Files:
/etc/init.d/umountfs changed:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
umask 022
do_stop () {
        exec 9<&0 </proc/mounts
        PROTECTED_MOUNTS="$(sed -n '0,/^\/[^ ]* \/ /p' /proc/mounts)"
        WEAK_MTPTS="" # be gentle, don't use force
        REG_MTPTS=""
        TMPFS_MTPTS=""
        while read -r DEV MTPT FSTYPE REST
        do
                echo "$PROTECTED_MOUNTS" | grep -qs "^$DEV $MTPT " && continue
                case "$MTPT" in
                  
/|/proc|/dev|/.dev|/dev/pts|/dev/shm|/dev/.static/dev|/proc/*|/sys|/sys/*|/lib/init/rw)
                        continue
                        ;;
                  /var/run)
                        if [ yes = "$RAMRUN" ] ; then
                                continue
                        fi
                        ;;
                  /var/lock)
                        if [ yes = "$RAMLOCK" ] ; then
                                continue
                        fi
                        ;;
                esac
                case "$FSTYPE" in 
                  proc|procfs|linprocfs|sysfs|usbfs|usbdevfs|devpts)
                        continue
                        ;;
                  tmpfs)
                        TMPFS_MTPTS="$MTPT $TMPFS_MTPTS"
                        ;;
                  *)
                        if echo "$PROTECTED_MOUNTS" | grep -qs "^$DEV "; then
                                WEAK_MTPTS="$MTPT $WEAK_MTPTS"
                        else
                                REG_MTPTS="$MTPT $REG_MTPTS"
                        fi
                        ;;
                esac
        done
        exec 0<&9 9<&-
        
        #
        # Make sure tmpfs file systems are umounted before turning off
        # swap, to avoid running out of memory if the tmpfs filesystems
        # use a lot of space.
        #
        if [ "$TMPFS_MTPTS" ]
        then
                if [ "$VERBOSE" = no ]
                then
                        log_action_begin_msg "Unmounting temporary filesystems"
                        fstab-decode umount $TMPFS_MTPTS
                        log_action_end_msg $?
                else
                        log_daemon_msg "Will now unmount temporary filesystems"
                        fstab-decode umount -v $TMPFS_MTPTS
                        log_end_msg $?
                fi
        fi
        #
        # Deactivate swap
        #
        if [ "$VERBOSE" = no ]
        then
                log_action_begin_msg "Desactivating swap"
                swapoff -a >/dev/null
                log_action_end_msg $?
        else
                log_daemon_msg "Will now deactivate swap"
                swapoff -a -v
                log_end_msg $?
        fi
        #
        # Unmount local filesystems
        #
        /usr/local/bin/eject.sh
        if [ "$WEAK_MTPTS" ]; then
                # Do not use -f umount option for WEAK_MTPTS
                if [ "$VERBOSE" = no ]
                then
                        log_action_begin_msg "Unmounting weak filesystems"
                        fstab-decode umount -r -d $WEAK_MTPTS
                        log_action_end_msg $?
                else
                        log_daemon_msg "Will now unmount weak filesystems"
                        fstab-decode umount -v -r -d $WEAK_MTPTS
                        log_end_msg $?
                fi
        fi
        if [ "$REG_MTPTS" ]
        then
                if [ "$VERBOSE" = no ]
                then
                        log_action_begin_msg "Unmounting local filesystems"
                        fstab-decode umount -f -r -d $REG_MTPTS
                        log_action_end_msg $?
                else
                        log_daemon_msg "Will now unmount local filesystems"
                        fstab-decode umount -f -v -r -d $REG_MTPTS
                        log_end_msg $?
                fi
        fi
}
case "$1" in
  start)
        # No-op
        ;;
  restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
  stop)
        do_stop
        ;;
  *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac
:


-- no debconf information

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

Reply via email to