buildroot/package/htpdate/htpdate.service
Michael Nosthoff 7e85145d97 package/htpdate: use /run for PIDFile
- rename pidfile from htpdate to htpdate.pid

Fixes:

PIDFile= references a path below legacy directory /var/run/, updating
/var/run/htpdate.pid → /run/htpdate.pid; please update the unit file
accordingly.

Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-09-19 15:15:34 +02:00

14 lines
303 B
Desktop File

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