Package: bootchart Version: 0.10~svn407-1 Severity: wishlist Hi,
Please could you accept this patch to allow the hardcoded path of /tmp for temporary data to be changed. I have found that stuff in /tmp is prone to being cleaned by various initscripts. Thanks, Kel.
diff -Nrup bootchart-0.10~svn407/script/bootchartd bootchart-0.10~svn407.log_dir/script/bootchartd --- bootchart-0.10~svn407/script/bootchartd 2008-03-03 02:05:56.000000000 +1000 +++ bootchart-0.10~svn407.log_dir/script/bootchartd 2008-03-03 02:05:24.000000000 +1000 @@ -23,6 +23,9 @@ VERSION="0.8" # Lock file BOOTLOG_LOCK=".lock" +# Base temp dir +BOOTLOG_DIR=/tmp + # Read configuration. CONF="/etc/bootchartd.conf" if [ -f $PWD/bootchartd.conf ]; then @@ -47,7 +50,7 @@ start() # boot), a tmpfs is mounted in /mnt. The mount point is immediately # released using a lazy umount, so the script must never leave that # directory. - LOG_DIR="$( mktemp -d /tmp/bootchart.XXXXXX 2>/dev/null )" + LOG_DIR="$( mktemp -d ${BOOTLOG_DIR}/bootchart.XXXXXX 2>/dev/null )" if [ -z "$LOG_DIR" ]; then LOG_DIR="/mnt" LAZY_UMOUNT="yes" diff -Nrup bootchart-0.10~svn407/script/bootchartd.conf bootchart-0.10~svn407.log_dir/script/bootchartd.conf --- bootchart-0.10~svn407/script/bootchartd.conf 2008-03-03 02:05:56.000000000 +1000 +++ bootchart-0.10~svn407.log_dir/script/bootchartd.conf 2008-03-03 02:03:44.000000000 +1000 @@ -18,6 +18,9 @@ PROCESS_ACCOUNTING="no" # Tarball for the various boot log files BOOTLOG_DEST=/var/log/bootchart.tgz +# Directory in which temporary data is stored during boot process +BOOTLOG_DIR=/tmp + # Whether to automatically stop logging as the boot process completes. # The logger will look for known processes that indicate bootup completion # at a specific runlevel (e.g. gdm-binary, mingetty, etc.).