xanmanning / alarm-fake-hwclock

Fake HWClock script for RPi Arch Linux Arm (replicates Raspbian's fake-hwclock)
Other
36 stars 11 forks source link

fix systemd service unit #12

Closed graysky2 closed 1 year ago

graysky2 commented 5 years ago

Running as type=simple does not run on shutdown and results in lost time. With type=oneshot, it does run on shutdown.

graysky2 commented 5 years ago

@xanmanning - The service we had before never actually ran on shutdown as far as I can tell. This one does for me. Thoughts?

graysky2 commented 5 years ago

...while this is working, something is not right. When I shutdown, I believe the executable is getting called but when the system comes back up, the time is off by days. In contrast, if I replace the 3 units with a single one (no timer), the time is only off by a few minutes.