mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-18 22:41:34 +08:00
6ec2060a29
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>
13 lines
306 B
SYSTEMD
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
|