I found that the link to bootmisc.sh in /etc/rcS.d/ is S19bootmisc.sh , and the link to mountnfs-bootclean.sh in /etc/rcS.d/ is S46mountnfs-bootclean.sh, that means bootmisc.sh is called before calling mountnfs-bootclean.sh and it remove the /var/run/.clean file, By default in debian, the link to bootmisc.sh in /etc/rcS.d/ shuould be S55bootmisc.sh, which accidently modified by some package in my box. (maybe by upstart, I've ever test it) Thanks, following is the links in my /etc/rcS.d directory: lrwxrwxrwx 1 root root 18 2007-09-23 S01glibc.sh -> ../init.d/glibc.sh lrwxrwxrwx 1 root root 21 2007-09-23 S02hostname.sh -> ../init.d/hostname.sh lrwxrwxrwx 1 root root 24 2008-08-11 S03mountkernfs.sh -> ../init.d/mountkernfs.sh lrwxrwxrwx 1 root root 14 2008-08-11 S04udev -> ../init.d/udev lrwxrwxrwx 1 root root 26 2008-08-11 S05mountdevsubfs.sh -> ../init.d/mountdevsubfs.sh lrwxrwxrwx 1 root root 19 2008-08-11 S06keymap.sh -> ../init.d/keymap.sh lrwxrwxrwx 1 root root 18 2008-08-11 S07bootlogd -> ../init.d/bootlogd lrwxrwxrwx 1 root root 24 05-02 13:47 S07keyboard-setup -> ../init.d/keyboard-setup lrwxrwxrwx 1 root root 14 06-04 17:45 S07lvm2 -> ../init.d/lvm2 lrwxrwxrwx 1 root root 21 2008-08-11 S07pcmciautils -> ../init.d/pcmciautils lrwxrwxrwx 1 root root 16 2008-08-11 S07procps -> ../init.d/procps lrwxrwxrwx 1 root root 22 2008-08-11 S08checkroot.sh -> ../init.d/checkroot.sh lrwxrwxrwx 1 root root 25 08-11 23:57 S08hwclockfirst.sh -> ../init.d/hwclockfirst.sh lrwxrwxrwx 1 root root 24 2008-08-11 S09ifupdown-clean -> ../init.d/ifupdown-clean lrwxrwxrwx 1 root root 27 2008-08-11 S09module-init-tools -> ../init.d/module-init-tools lrwxrwxrwx 1 root root 17 2008-08-11 S09mtab.sh -> ../init.d/mtab.sh lrwxrwxrwx 1 root root 19 2008-08-11 S09udev-mtab -> ../init.d/udev-mtab lrwxrwxrwx 1 root root 20 06-04 17:45 S10checkfs.sh -> ../init.d/checkfs.sh lrwxrwxrwx 1 root root 20 08-11 23:57 S11hwclock.sh -> ../init.d/hwclock.sh lrwxrwxrwx 1 root root 21 06-04 17:45 S11mountall.sh -> ../init.d/mountall.sh lrwxrwxrwx 1 root root 24 06-04 17:45 S11selinux-basics -> ../init.d/selinux-basics lrwxrwxrwx 1 root root 31 06-04 17:45 S12mountall-bootclean.sh -> ../init.d/mountall-bootclean.sh lrwxrwxrwx 1 root root 19 06-04 17:45 S14dns-clean -> ../init.d/dns-clean lrwxrwxrwx 1 root root 14 06-04 17:45 S14fuse -> ../init.d/fuse lrwxrwxrwx 1 root root 20 06-04 17:45 S14lm-sensors -> ../init.d/lm-sensors lrwxrwxrwx 1 root root 25 06-04 17:45 S14policycoreutils -> ../init.d/policycoreutils lrwxrwxrwx 1 root root 18 06-04 17:45 S14pppd-dns -> ../init.d/pppd-dns lrwxrwxrwx 1 root root 20 06-04 17:45 S14resolvconf -> ../init.d/resolvconf lrwxrwxrwx 1 root root 17 06-04 17:45 S14urandom -> ../init.d/urandom lrwxrwxrwx 1 root root 20 06-04 17:45 S14x11-common -> ../init.d/x11-common lrwxrwxrwx 1 root root 18 06-04 17:45 S15ifupdown -> ../init.d/ifupdown lrwxrwxrwx 1 root root 20 06-04 17:45 S16networking -> ../init.d/networking lrwxrwxrwx 1 root root 20 06-04 17:45 S19alsa-utils -> ../init.d/alsa-utils lrwxrwxrwx 1 root root 23 06-04 17:45 S19console-setup -> ../init.d/console-setup lrwxrwxrwx 1 root root 26 06-04 17:45 S19libdevmapper1.02 -> ../init.d/libdevmapper1.02 lrwxrwxrwx 1 root root 24 06-04 17:45 S19screen-cleanup -> ../init.d/screen-cleanup lrwxrwxrwx 1 root root 30 06-04 17:45 S20stop-bootlogd-single -> ../init.d/stop-bootlogd-single lrwxrwxrwx 1 root root 18 07-17 01:34 S30ebtables -> ../init.d/ebtables lrwxrwxrwx 1 root root 26 08-12 00:02 S37mountoverflowtmp -> ../init.d/mountoverflowtmp lrwxrwxrwx 1 root root 21 06-27 11:06 S45mountnfs.sh -> ../init.d/mountnfs.sh lrwxrwxrwx 1 root root 31 08-12 00:02 S46mountnfs-bootclean.sh -> ../init.d/mountnfs-bootclean.sh lrwxrwxrwx 1 root root 21 06-04 17:45 S55bootmisc.sh -> ../init.d/bootmisc.sh lrwxrwxrwx 1 root root 19 06-23 23:23 S75policykit -> ../init.d/policykit lrwxrwxrwx 1 root root 14 08-12 00:13 S75sudo -> ../init.d/sudo
2009/7/24 Petter Reinholdtsen <[email protected]> > tags 537394 - patch > thanks > > Do not see the patch, so I remove the patch flag. > > [Alan Guo] > > For /etc/rcS.d/S12mountall-bootclean.sh cleans /tmp , /var/lock and > > /var/run, I think it is not nessary > > /etc/rcS.d/S46mountnfs-bootclean.sh cleanning /tmp, /var/lock, > > /var/run once again, so I report this bug as a initscripts bug > > The question is really why it is cleaning it twice. The clean jobs > should log for the flag file .clean, and skip the cleaning if the file > exist (and create it after the first cleaning if it does not). > > Any idea why this isn't happening on your system? > > Happy hacking, > -- > Petter Reinholdtsen > -- Alan Guo http://bluestone.cublog.cn
_______________________________________________ Pkg-sysvinit-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

