Package: fake-hwclock
Version: 0.12

On a Raspberry Pi I removed the cron packages, yet I want to write
hourly down the current time.  Please include the following files 

---------- fake-hwclock-save.service
[Unit]
Description=Substitute the fake-hwclock hourly saves, when systemd is
present and crond absent

[Service]
ExecStart=/sbin/fake-hwclock save
Type=oneshot

[Install]
WantedBy=timers.target

---------- fake-hwclock-save.timer
[Unit]
Description=Substitute the fake-hwclock hourly saves, when systemd is
present and crond absent

[Timer]
OnCalendar=hourly

[Install]
WantedBy=timers.target



in the tarball, install them, but do not activate them.  This way on a
Raspberry Pi system without cron with systemd, one can activate the
fake-hwclock hourly safes.

How does fake-hwclock differ from systemd-timesyncd?  I mean, per
https://www.freedesktop.org/software/systemd/man/systemd-timesyncd.service.html
the file /var/lib/systemd/timesync/clock already contains the last
current time, why does fake-hwclock need a different way to save the
last current time?

Reply via email to