Created
June 30, 2017 14:31
-
-
Save ricco386/b621f693129d337699125e407bdfd973 to your computer and use it in GitHub Desktop.
Systemd timer for fstrim. Usage: systemctl enable fstrim.timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/fstrim.service | |
# Called by /usr/lib/systemd/system/fstrim.timer from util-linux | |
# Add `-v` flag so that results can be reviewed in jouranctl | |
[Unit] | |
Description=Discard unused blocks (for SSD Drives) | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/sbin/fstrim -av |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Arch (at least installed by Antergos) the fstrim.service file is at /etc/systemd/system/fstrim.service, not as indicated in line 1, and already has this content (except that fstrim is located at /sbin/fstrim).