4 ms·
Did you paste that printout from a recent run of units? If so, the currency rates are pretty useless. You can configure the system to update them daily (or howe
by scaladev 6y ago
Did you paste that printout from a recent run of units? If so, the currency rates are pretty useless. You can configure the system to update them daily (or however you like) with something like this:
$ cat /etc/systemd/system/units-currency-update.service
[Unit]
Description=Update units(1) currency rates
[Service]
Type=oneshot
Nice=19
ExecStart=/usr/bin/units_cur
$ cat /etc/systemd/system/units-currency-update.timer
[Unit]
Description=Update units(1) currency rates
[Timer]
OnCalendar=daily
AccuracySec=3h
RandomizedDelaySec=3h
Persistent=true
[Install]
WantedBy=timers.target
# systemctl daemon-reload
# systemctl enable units-currency-update.timer
- boogies 6y agoOr just something like 0 0 * * * nice -n 19 /usr/bin/units_cur for *BSD crontabs or both HN users (besides me) who prefer systemd-free distros of GNU