[Unit] Description=Temperature Logger Wants=network.target BindsTo=ntpd.service After=ntpd.service [Service] Type=simple ExecStart=/usr/local/bin/ntplogtemp -l /var/log/ntpstats/temps -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