ntp: enable automatic restart

NTPd sometimes fails to start on the first try, but works fine when
restarted.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-07-19 21:27:13 +02:00 committed by Holger Hans Peter Freyther
parent f0fb4a9ad8
commit 27915edf67
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ After=network.target
Type=forking
PIDFile=/run/ntpd.pid
ExecStart=/usr/sbin/ntpd -u ntp:ntp -p /run/ntpd.pid -g
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target