diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2013-09-16 09:06:35 +0200 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-09-16 10:23:25 -0400 |
commit | 080887cf4a95455d11e7a3e176c7c35740e72ea6 (patch) | |
tree | 2754f294dcb18da34c3b42508f8825aed0fe3809 | |
parent | 4ddfb3e92fdcffccfcbae1b4003a5d7c3385a637 (diff) | |
download | meta-openembedded-080887cf4a95455d11e7a3e176c7c35740e72ea6.tar.gz |
ntp: disable automatic panic shutdown for ntpd
Taken from [1]:
"However, if the difference between the client time and server time is greater
than the panic threshold, which defaults to 1000 s, the daemon will send a
message to the system log and shut down without setting the clock."
On RTC-less or 'fresh' systems with unpredicatble inital date ntpd will stop
with work undone (note: I did NOT find the message mentioned above - so it
took long way to fix). This is a wide use case for using NTP in production:
No need for initial datetime setup by some operator.
[1] http://doc.ntp.org/4.1.1/debug.htm
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | meta-networking/recipes-support/ntp/ntp/ntpd.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd.service b/meta-networking/recipes-support/ntp/ntp/ntpd.service index bd87b1ea24..eb9c0308c1 100644 --- a/meta-networking/recipes-support/ntp/ntp/ntpd.service +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.service | |||
@@ -5,7 +5,7 @@ After=network.target | |||
5 | [Service] | 5 | [Service] |
6 | Type=forking | 6 | Type=forking |
7 | PIDFile=/run/ntpd.pid | 7 | PIDFile=/run/ntpd.pid |
8 | ExecStart=/usr/bin/ntpd -p /run/ntpd.pid | 8 | ExecStart=/usr/bin/ntpd -p /run/ntpd.pid -g |
9 | 9 | ||
10 | [Install] | 10 | [Install] |
11 | WantedBy=multi-user.target | 11 | WantedBy=multi-user.target |