add clear-downloads script/service/timer

This commit is contained in:
2025-09-02 08:11:02 -04:00
parent 2a6a3ab604
commit 0f7e79849d
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Delete downloads older than 24h
[Service]
Type=oneshot
ExecStart=/home/joe/.local/bin/clear-downloads

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run clear-downloads service once a day
Requires=clear-downloads.service
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1 @@
/home/joe/.config/systemd/user/clear-downloads.timer