[Unit]
Description=HTTP based time synchronization tool
Documentation=man:htpdate
After=network.target remote-fs.target

[Service]
EnvironmentFile=/etc/default/htpdate
ExecStart=/usr/sbin/htpdate $HTP_OPTIONS $HTP_PROXY -i /run/htpdate.pid $HTP_SERVERS
ExecReload=/bin/kill -HUP $MAINPID
Type=forking
PIDFile=/run/htpdate.pid
################
### Security ###
################
InaccessiblePaths=-/boot -/home -/media -/mnt -/root -/opt -/srv
PrivateTmp=yes
ReadOnlyPaths=/etc /usr /var
ReadWritePaths=/run

[Install]
WantedBy=multi-user.target
