| 1 |
[Unit] |
| 2 |
Description=HTTP based time synchronization tool |
| 3 |
Documentation=man:htpdate |
| 4 |
After=network.target remote-fs.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
EnvironmentFile=/etc/default/htpdate |
| 8 |
ExecStart=/usr/sbin/htpdate $HTP_OPTIONS $HTP_PROXY -i /run/htpdate.pid $HTP_SERVERS |
| 9 |
ExecReload=/bin/kill -HUP $MAINPID |
| 10 |
Type=forking |
| 11 |
PIDFile=/run/htpdate.pid |
| 12 |
################ |
| 13 |
### Security ### |
| 14 |
################ |
| 15 |
InaccessibleDirectories=/boot /home /media /mnt /root /opt /srv |
| 16 |
PrivateTmp=yes |
| 17 |
ReadOnlyDirectories=/etc /usr /var |
| 18 |
ReadWriteDirectories=/var/run |
| 19 |
|
| 20 |
[Install] |
| 21 |
WantedBy=multi-user.target |