[Pkg-sysvinit-commits] r637 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood-guest at costa.debian.org
Thu Jan 12 20:13:57 UTC 2006


Author: jdthood-guest
Date: 2006-01-12 20:13:53 +0000 (Thu, 12 Jan 2006)
New Revision: 637

Modified:
   sysvinit/trunk/debian/initscripts/etc/init.d/bootclean
Log:
Tweak bootclean comments

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/bootclean
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/bootclean	2006-01-12 20:07:11 UTC (rev 636)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/bootclean	2006-01-12 20:13:53 UTC (rev 637)
@@ -47,7 +47,9 @@
 	#
 	rm -f .X*-lock
 
-	# Don't clean remaining files in /tmp if TMPTIME < 0 or "infinite"
+	#
+	# Don't clean remaining files if TMPTIME is negative or 'infinite'
+	#
 	case "$TMPTIME" in
 	  -*|infinite|infinity)
 		[ "$VERBOSE" = no ] || log_action_end_msg 0 "skipped"
@@ -55,10 +57,10 @@
 		;;
 	esac
 
-	# Wipe /tmp, but exclude system files.
-	# Note that files _in_ lost+found _are_ deleted.
 	#
-	# If $TMPTIME is set to 0, we do not use any ctime expression
+	# Wipe /tmp, excluding system files, but including lost+found
+	#
+	# If TMPTIME is set to 0, we do not use any ctime expression
 	# at all, so we can also delete files with timestamps
 	# in the future!
 	#
@@ -92,15 +94,22 @@
 			log_action_end_msg 1 "bootclean: Failure cleaning /tmp"
 		fi
 	}
+
+	#
 	# First remove all old files...
 	# (Use xargs here so that only one additional process gets created)
+	#
 	find . -depth -xdev $TEXPR $EXCEPT ! -type d \
 		-print0 | xargs -0r rm -f -- \
 		|| { report_err ; return 1 ; }
+
+	#
 	# ...and then all empty directories
+	#
 	find . -depth -xdev $DEXPR $EXCEPT -type d -empty \
 		-print0 | xargs -0r rmdir --ignore-fail-on-non-empty -- \
 		|| { report_err ; return 1 ; }
+
 	[ "$VERBOSE" = no ] || log_action_end_msg 0
 	return 0
 }




More information about the Pkg-sysvinit-commits mailing list