Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A systemd service to sync to (PiJuice Zero's) a Real Time Clock upon boot.
[Unit]
Description=Sync pi to PjJuice hardware RTC
[Service]
ExecStart=/sbin/hwclock -s
# This might be optional, as default user is root(?)
User=root
Group=root
[Install]
WantedBy=multi-user.target
# sudo edit /etc/systemd/sync-to-rtc.service
# sudo enable /etc/systemd/sync-to-rtc.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment