]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
collectd: sync after cfg update and ramdisk backup.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 21 Jan 2015 12:19:00 +0000 (13:19 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 21 Jan 2015 12:19:00 +0000 (13:19 +0100)
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