[Unit] Description=GPS Logger Wants=network.target ConditionCapability=CAP_SYS_TIME BindsTo=gpsd.service After=gpsd.service [Service] Type=simple ExecStart=/usr/local/bin/ntploggps -l /var/log/ntpstats/gpsd -w 60 # Specifying -g on the command line allows ntpd to make large adjustments to # the clock on boot. However, if Restart=yes is set, a malicious (or broken) # server could send the incorrect time, trip the panic threshold, and when # ntpd restarts, serve it the incorrect time (which would be accepted). Restart=yes [Install] WantedBy=multi-user.target