2020-07-15
I tamed systemd
I shared my earlier mishap with systemd on twitter: @khoos: Another run-in with systemd and got a reply to check the prerequisites: @devbeard: Is there something that needs to come after, before the thing is there for gpsctl to configure? and I added a dependency on the serial driver for the right port. This seems to work now, it all comes up as planned. Updated file /etc/systemd/system/ublox-init.service:[Unit] Description=u-blox initialisation Before=gpsd.service Before=ntp.service Requires=sys-devices-platform-soc-3f201000.serial-tty-ttyAMA0.device [Service] Type=oneshot ExecStart=/usr/local/bin/gpsctl -q -a -B 115200 --configure_for_timing [Install] WantedBy=multi-user.targetAnd now I'm greeted by a working ntpd at 115200 bps when I log in to the Pi.