collectd: sync after cfg update and ramdisk backup.

This commit is contained in:
Arne Fitzenreiter
2015-01-21 13:19:00 +01:00
parent 893ef99ed4
commit 08215cb5d8

View 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