]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
collectd: Do not sync
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Jan 2024 18:01:52 +0000 (18:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Jan 2024 10:30:27 +0000 (10:30 +0000)
Calling a global sync operation manually is generally a bad idea as it
can block for forever. If people have storage that does not retain
anything that is being written to it, they need to fix their hardware.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/collectd

index bb8a2f54f4a85f009ca5f54e3c3cf7c66b5d9752..56b799d56d21409bd95e467d6241d482bcc119cf 100644 (file)
@@ -146,9 +146,6 @@ case "$1" in
                        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..."
                        /usr/sbin/collectd -C /etc/collectd.conf