mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Add a service to clean up XDG_CACHE_HOME files.
This commit is contained in:
7
systemd/.config/systemd/user/xdg-cache-clean.service
Normal file
7
systemd/.config/systemd/user/xdg-cache-clean.service
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Cleanup of the XDG_CACHE_HOME directory
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment="XDG_CACHE_HOME=%h/.cache"
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/find $XDG_CACHE_HOME -atime +60 -delete -print
|
||||||
9
systemd/.config/systemd/user/xdg-cache-clean.timer
Normal file
9
systemd/.config/systemd/user/xdg-cache-clean.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Weekly cache dir cleanup
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=weekly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user