statusproc /usr/sbin/collectd
;;
+ backup)
+ # Backup all data if ramdisk is used
+ if mountpoint "${RRDLOG}" &>/dev/null; then
+ ${0} restart
+ fi
+ ;;
+
*)
- echo "Usage: $0 {start|stop|restart|status}"
+ echo "Usage: $0 {start|stop|restart|status|backup}"
exit 1
;;
esac