e2fsprogs/scrub/e2scrub_all.service.in
Darrick J. Wong 6ec2060a29 e2scrub: remove -C from e2scrub_all
We already have the "SERVICE_MODE=1" feature that signals to e2scrub
that we're running as a background daemon and therefore we should exit
quietly if conditions aren't right.

It's therefore unnecessary to have a separate -C flag to achieve the
same outcome for cron jobs.  Merge the two together.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-06-04 13:53:13 -04:00

13 lines
306 B
SYSTEMD

[Unit]
Description=Online ext4 Metadata Check for All Filesystems
ConditionACPower=true
ConditionCapability=CAP_SYS_ADMIN
ConditionCapability=CAP_SYS_RAWIO
Documentation=man:e2scrub_all(8)
[Service]
Type=oneshot
Environment=SERVICE_MODE=1
ExecStart=@root_sbindir@/e2scrub_all
SyslogIdentifier=e2scrub_all