FS#39880 - [pkgfile] should carry a cache file update service
Attached to Project:
Arch Linux
Opened by Jan (medhefgo) - Tuesday, 15 April 2014, 17:14 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 17 April 2014, 15:30 GMT
Opened by Jan (medhefgo) - Tuesday, 15 April 2014, 17:14 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 17 April 2014, 15:30 GMT
|
Details
To make pkgfile more useful, the pkgfile package should
carry a update service that is triggered by a timer like the
one below.
[Unit] Description=Update pkgfile cache RequiresMountsFor=/var/cache/pkgfile [Service] Type=oneshot ExecStart=/usr/bin/mkdir -m 0755 -p /var/cache/pkgfile ExecStart=/usr/bin/pkgfile --update PrivateTmp=true PrivateDevices=true CapabilityBoundingSet= Nice=19 [Unit] Description=Weekly pkgfile cache update [Timer] OnCalendar=weekly AccuracySec=12h Persistent=true |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 17 April 2014, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: Upstream: https://github.com/falconindy/pkgfile/co mmit/1b7af32b712b9e2de
Thursday, 17 April 2014, 15:30 GMT
Reason for closing: Fixed
Additional comments about closing: Upstream: https://github.com/falconindy/pkgfile/co mmit/1b7af32b712b9e2de
$ pkgfile -uu | cat
:: Updating 10 repos...
download complete: falconindy [ 33.6 KiB 494K/s 9 remaining]
:: Updating 10 repos...
download complete: falconindy [ 33.6 KiB 494K/s 9 remaining]
download complete: multilib-testing [ 29.0 B 287B/s 8 remaining]
:: Updating 10 repos...
download complete: falconindy [ 33.6 KiB 494K/s 9 remaining]
download complete: multilib-testing [ 29.0 B 287B/s 8 remaining]
download complete: community-testing [ 14.1 KiB 87.8K/s 7 remaining]
:: Updating 10 repos...
download complete: falconindy [ 33.6 KiB 494K/s 9 remaining]
download complete: multilib-testing [ 29.0 B 287B/s 8 remaining]
download complete: community-testing [ 14.1 KiB 87.8K/s 7 remaining]
download complete: testing [ 29.6 KiB 105K/s 6 remaining]
:: Updating 10 repos...
download complete: falconindy [ 33.6 KiB 494K/s 9 remaining]
download complete: multilib-testing [ 29.0 B 287B/s 8 remaining]
download complete: community-testing [ 14.1 KiB 87.8K/s 7 remaining]
download complete: testing [ 29.6 KiB 105K/s 6 remaining]
download complete: community-staging [ 88.3 KiB 304K/s 5 remaining]
etc.....
> One could run in with --quiet too if it's really that much of a problem.
This has zero effect on updates...
StandardOutput=null
StandardError=journal
does the trick for me, though. I still get error messages if any happen while getting rid of the spam.
Also, this adds some more paranoid security to the service that might be worth adding:
ReadOnlyDirectories=/
ReadWriteDirectories=/var/cache
I'll add this to the upstream repo. It doesn't really need to be an Arch only thing.