]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/collectd
Move ramdisk backup/restore to tmpfs initskript
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / collectd
index a64114fb3821887979531dfaad8418051122b63b..2a0cd166637f162358781dbd581e5a6c89de3617 100644 (file)
@@ -43,7 +43,7 @@ case "$1" in
        stop)
                # Save the ramdisk at manual stop but not at shutdown
                if [ "$(basename $0)" == "collectd" ]; then
-                   /etc/init.d/collectd backup
+                   /etc/init.d/tmpfs backup
                fi
                boot_mesg "Stopping Collection daemon..."
                killproc /usr/sbin/collectd
@@ -54,17 +54,6 @@ case "$1" in
                sleep 1
                ${0} start
                ;;
-       backup)
-               boot_mesg "Save rrd files from ramd..."
-               cp -pR $RRDLOG/* $RRDLOG.bak/
-               evaluate_retval
-               ;;
-       restore)
-               if [ -e $RRDLOG.bak ];then
-                       boot_mesg "Copying rrd files to ramd..."
-                       cp -pR $RRDLOG.bak/* $RRDLOG/
-               fi
-               ;;
        status)
                statusproc /usr/sbin/collectd
                ;;