Skip to content

Commit

Permalink
feat: improve tmpfile services
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 7, 2023
1 parent 8d3e251 commit 361e7d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 3 additions & 1 deletion scripts/tmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ main_pacman() {
}

main() {
configfile user-tmpfiles.d
configfile user-tmpfiles.d '' 'tmpfiles'
configsystemd 'tmpfiles' systemd-tmpfiles-clean.timer.d

systemctl --user enable --now systemd-tmpfiles-setup.service
systemctl --user enable --now systemd-tmpfiles-clean.timer

Expand Down
6 changes: 6 additions & 0 deletions tmpfiles/systemd-tmpfiles-clean.timer.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
Description=Hourly Cleanup of User's Temporary Directories

[Timer]
OnStartupSec=5min
OnUnitActiveSec=1h
8 changes: 0 additions & 8 deletions user-tmpfiles.d/downloads.conf

This file was deleted.

0 comments on commit 361e7d1

Please sign in to comment.