aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/system/lostfiles.service
blob: d2df9e42410a972f96ad251c6b4ef891f014f208 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Refresh lostfiles report at /run/lostfiles.txt
Documentation=man:lostfiles(1)
ConditionPathExists=/usr/bin/lostfiles

[Service]
Type=oneshot
Nice=19
IOSchedulingClass=idle
ExecStart=/bin/sh -c '/usr/bin/lostfiles | { if [ -f /etc/lostfiles.ignore ]; then grep -vFxf /etc/lostfiles.ignore; else cat; fi; } >/run/lostfiles.txt.tmp && mv /run/lostfiles.txt.tmp /run/lostfiles.txt'