By default, e2scrub_all will not actually trigger online scrubs unless
periodic_e2scrub=1 is set in /etc/e2scrub.conf.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
# e2scrub configuration file
# e2scrub configuration file
+# Uncomment to enable automatic periodic runs of e2scrub_all
+# (either via cron or via a systemd timer)
+# periodic_e2scrub=1
+
# e-mail destination used by e2scrub_fail when problems are found with
# the file system.
# recipient=root
# e-mail destination used by e2scrub_fail when problems are found with
# the file system.
# recipient=root
scrub_all=0
snap_size_mb=256
reap=0
scrub_all=0
snap_size_mb=256
reap=0
done
shift "$((OPTIND - 1))"
done
shift "$((OPTIND - 1))"
+if [ -n "${SERVICE_MODE}" -a "${reap}" -ne 1 -a "${periodic_e2scrub}" -ne 1 ]
+then
+ exitcode 0
+fi
+
# If some prerequisite packages are not installed, exit with a code
# indicating success to avoid spamming the sysadmin with fail messages
# when e2scrub_all is run out of cron or a systemd timer.
# If some prerequisite packages are not installed, exit with a code
# indicating success to avoid spamming the sysadmin with fail messages
# when e2scrub_all is run out of cron or a systemd timer.