]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/collectd
collectd: sync after cfg update and ramdisk backup.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / collectd
index c0ca12fe4f79abd1323829cb17f5a09c31684f9d..96bd12676cec3e0aed41344556a4249bdd720e91 100644 (file)
@@ -89,6 +89,9 @@ case "$1" in
                else
                        sed -i -e "s|^#LoadPlugin swap|LoadPlugin swap|g" /etc/collectd.conf
                fi
+               
+               # sync after config update...
+               sync
 
                if [ $(date +%Y) -gt 2011 ]; then
                        boot_mesg "Starting Collection daemon..."
@@ -107,6 +110,8 @@ case "$1" in
                if [ "$(basename $0)" == "collectd" ]; then
                    /etc/init.d/tmpfs backup
                fi
+               # sync after backup...
+               sync
                ;;
        restart)
                ${0} stop