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
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
;;