aboutsummaryrefslogtreecommitdiffstats
path: root/scrub/e2scrub_all.timer.in
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-03-23 18:57:22 -0700
committerTheodore Ts'o <tytso@mit.edu>2018-08-05 14:59:40 -0400
commita2df58945c232186c96ffa8958f555ed33965ff7 (patch)
treeec38d5ead15d3a05dc20e9ab09defbd11e44db79 /scrub/e2scrub_all.timer.in
parenta089aec341997945ad2906414c39c09761a788b7 (diff)
downloade2fsprogs-a2df58945c232186c96ffa8958f555ed33965ff7.tar.gz
e2scrub: add service (cron, systemd) support
Add the ability to run the e2scrub utilities as a periodically scheduled system service. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scrub/e2scrub_all.timer.in')
-rw-r--r--scrub/e2scrub_all.timer.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/scrub/e2scrub_all.timer.in b/scrub/e2scrub_all.timer.in
new file mode 100644
index 000000000..3d558bbc8
--- /dev/null
+++ b/scrub/e2scrub_all.timer.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=Periodic ext4 Online Metadata Check for All Filesystems
+
+[Timer]
+# Run on Sunday at 3:10am, to avoid running afoul of DST changes
+OnCalendar=Sun *-*-* 03:10:00
+RandomizedDelaySec=60
+Persistent=true
+
+[Install]
+WantedBy=timers.target