[Unit] Description=htpdate daemon After=network.target [Service] Type=forking PIDFile=/var/run/htpdate Environment=HTPDATE_ARGS="-a -s -t https://www.google.com" EnvironmentFile=-/etc/default/htpdate ExecStart=/usr/bin/htpdate -D -i /var/run/htpdate $HTPDATE_ARGS [Install] WantedBy=multi-user.target