add clear-downloads script/service/timer
This commit is contained in:
7
dot_config/systemd/user/clear-downloads.service
Normal file
7
dot_config/systemd/user/clear-downloads.service
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Delete downloads older than 24h
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/joe/.local/bin/clear-downloads
|
||||
|
10
dot_config/systemd/user/clear-downloads.timer
Normal file
10
dot_config/systemd/user/clear-downloads.timer
Normal 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
|
@@ -0,0 +1 @@
|
||||
/home/joe/.config/systemd/user/clear-downloads.timer
|
Reference in New Issue
Block a user