pikaur
pikaur copied to clipboard
clear cache timer
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
[Unit]
Description=Discard unused packages weekly
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
[Install]
WantedBy=timers.target
[Unit]
Description=Discard unused packages
[Service]
Type=oneshot
ExecStart=/usr/bin/paccache -c /home/%i/.cache/pikaur/pkg -r
User=%i
Group=%i
-
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?
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.