/etc/init.d/checkroot-bootclean.sh is in initscripts 2.88dsf-59.3ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #! /bin/sh
### BEGIN INIT INFO
# Provides: checkroot-bootclean
# Required-Start: checkroot
# Required-Stop:
# Default-Start: S
# Default-Stop:
# X-Start-Before: bootmisc
# Short-Description: bootclean after checkroot.
# Description: Clean temporary filesystems after
# the root filesystem has been mounted.
# At this point, directories which may be
# masked by future mounts may be cleaned.
### END INIT INFO
. /lib/lsb/init-functions
. /lib/init/bootclean.sh
case "$1" in
start|"")
# Clean /tmp, /run and /run/lock. Remove the .clean files to
# force initial cleaning. This is intended to allow cleaning
# of directories masked by mounts while the system was
# previously running, which would otherwise prevent them being
# cleaned.
rm -f /tmp/.clean /run/.clean /run/lock/.clean
clean_all
exit $?
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop|status)
# No-op
;;
*)
echo "Usage: checkroot-bootclean.sh [start|stop]" >&2
exit 3
;;
esac
:
|