mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 08:52:58 +02:00
collectd: sync after cfg update and ramdisk backup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user