mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
collectd: Do not sync
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>
This commit is contained in:
@@ -146,9 +146,6 @@ case "$1" in
|
|||||||
sed -i -e "s|^#LoadPlugin swap|LoadPlugin swap|g" /etc/collectd.conf
|
sed -i -e "s|^#LoadPlugin swap|LoadPlugin swap|g" /etc/collectd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# sync after config update...
|
|
||||||
sync
|
|
||||||
|
|
||||||
if [ $(date +%Y) -gt 2011 ]; then
|
if [ $(date +%Y) -gt 2011 ]; then
|
||||||
boot_mesg "Starting Collection daemon..."
|
boot_mesg "Starting Collection daemon..."
|
||||||
/usr/sbin/collectd -C /etc/collectd.conf
|
/usr/sbin/collectd -C /etc/collectd.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user