[arch-general] systemd timers: switch default target to timers.target?

Rodrigo Rivas rodrigorivascosta at gmail.com
Sun Oct 5 18:21:40 UTC 2014


On Sat, Oct 4, 2014 at 1:44 PM, Neitsab <neitsab at ovh.fr> wrote:

> Five other packages in base group provide systemd timers: logrotate,
> man-db, mdadm, shadow and util-linux. I didn't manage to use pkgfile to
> get this list (globbing and regex switches didn't help, dunno why), so I
> only counted .timer files present in /usr/lib/systemd/system/.

AFAICT, pkgfile can list packages from the file name or file names
from the package, but not plain files by name. Anyway it can be piped
with a bit of imagination:

$ pkgfile --glob *.timer | xargs -n1 pkgfile --list | grep .timer$
/usr/lib/systemd/system/logrotate.timer
/usr/lib/systemd/system/multi-user.target.wants/logrotate.timer
/usr/lib/systemd/system/man-db.timer
/usr/lib/systemd/system/multi-user.target.wants/man-db.timer
/usr/lib/systemd/system/mdadm-last-resort at .timer
/usr/lib/systemd/system/multi-user.target.wants/updatedb.timer
/usr/lib/systemd/system/updatedb.timer
/usr/lib/systemd/system/multi-user.target.wants/shadow.timer
/usr/lib/systemd/system/shadow.timer
/usr/lib/systemd/system/systemd-readahead-done.timer
/usr/lib/systemd/system/systemd-tmpfiles-clean.timer
/usr/lib/systemd/system/timers.target.wants/systemd-tmpfiles-clean.timer
/usr/lib/systemd/system/fstrim.timer
/usr/lib/systemd/system/hylafax.timer
/usr/lib/systemd/system/multi-user.target.wants/hylafax.timer
/usr/lib/systemd/system/pkgfile-update.timer
/usr/lib/systemd/system/multi-user.target.wants/pkgstats.timer
/usr/lib/systemd/system/pkgstats.timer
/usr/lib/systemd/system/mailman-checkdbs.timer
/usr/lib/systemd/system/mailman-cullbadshunt.timer
/usr/lib/systemd/system/mailman-disabled.timer
/usr/lib/systemd/system/mailman-gatenews.timer
/usr/lib/systemd/system/mailman-mailpasswds.timer
/usr/lib/systemd/system/mailman-nightlygzip.timer
/usr/lib/systemd/system/mailman-senddigests.timer
/usr/lib/systemd/system/snapper-cleanup.timer
/usr/lib/systemd/system/snapper-timeline.timer
/usr/lib/systemd/system/squid-rotate.timer
/usr/lib/systemd/system/timers.target.wants/squid-rotate.timer
/usr/lib/systemd/system/sysstat-collect.timer
/usr/lib/systemd/system/sysstat-summary.timer

HTH


More information about the arch-general mailing list