pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

clear cache timer

Open jjgalvez opened this issue 6 years ago • 2 comments

Please consider adding a timer to clear the pkg cache similar to paccache. on my system I added the following service, essentually stolen from the paccache service

[email protected]

[Unit]
Description=Discard unused packages weekly

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=timers.target

[email protected]

[Unit]
Description=Discard unused packages

[Service]
Type=oneshot
ExecStart=/usr/bin/paccache -c /home/%i/.cache/pikaur/pkg -r
User=%i
Group=%i

jjgalvez avatar Apr 26 '19 00:04 jjgalvez

  1. seems like service not gonna work with dynamic users' cache (it would require more sophisticated unit leveraging system dynamic users)

  2. a bit stupid question (but i didn't had time to investigate it): by default timer will be disabled, right?

actionless avatar Apr 26 '19 01:04 actionless

Hadn't thought about dynamic users. Yes the service wound be disabled by default.

Get Outlook for Android

On Thu, Apr 25, 2019 at 9:20 PM -0400, "Yauhen Kirylau" [email protected] wrote:

seems like service not gonna work with dynamic users' cache (it would require more sophisticated unit leveraging system dynamic users)

a bit stupid question (but i didn't had time to investigate it): by default timer will be disabled, right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jjgalvez avatar Apr 26 '19 09:04 jjgalvez