monitoring tmpfs: Mount ramdisk in initscript

This commit is contained in:
Michael Tremer
2014-08-24 16:06:54 +02:00
parent 1f4b1f6ea9
commit efb77c9e35

View File

@@ -68,6 +68,10 @@ case "$1" in
evaluate_retval
;;
restore)
if ! mountpoint $RRDLOG &>/dev/null; then
mount -t tmpfs -o size=64M none "$RRDLOG"
fi
if [ -e $RRDLOG.bak/cron/new.root ]; then
if [ -e $RRDLOG.bak/cron/root ]; then
rm -f $RRDLOG.bak/cron/new.root