1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00

Add a service to clean up XDG_CACHE_HOME files.

This commit is contained in:
Bert Peters
2016-07-16 16:49:29 +02:00
parent 4b71d56253
commit 32a15cfce3
2 changed files with 16 additions and 0 deletions

View 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

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Weekly cache dir cleanup
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=default.target