3
# Provides: checkroot-bootclean
4
# Required-Start: checkroot
8
# X-Start-Before: bootmisc
9
# Short-Description: bootclean after checkroot.
10
# Description: Clean temporary filesystems after
11
# the root filesystem has been mounted.
12
# At this point, directories which may be
13
# masked by future mounts may be cleaned.
16
. /lib/lsb/init-functions
17
. /lib/init/bootclean.sh
21
# Clean /tmp, /run and /run/lock. Remove the .clean files to
22
# force initial cleaning. This is intended to allow cleaning
23
# of directories masked by mounts while the system was
24
# previously running, which would otherwise prevent them being
26
rm -f /tmp/.clean /run/.clean /run/lock/.clean
31
restart|reload|force-reload)
32
echo "Error: argument '$1' not supported" >&2
39
echo "Usage: checkroot-bootclean.sh [start|stop]" >&2