[oe-commits] Wenzong Fan : ntp: fix path to drift file

git at git.openembedded.org git at git.openembedded.org
Tue Oct 14 09:47:38 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 681413157866cf2544f27e7ca22496f277e0c63a
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=681413157866cf2544f27e7ca22496f277e0c63a

Author: Wenzong Fan <wenzong.fan at windriver.com>
Date:   Mon Oct 13 02:17:16 2014 -0400

ntp: fix path to drift file

The default path of ntp drift file is /etc/ntp.drift, ntp daemon
maybe fails to create this file since the user ntp is not always
permitted to write /etc.

Refer to other distributions such as RedHat, Debian, just moving
the file to /var/lib/ntp which the home dir of user ntp.

Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-networking/recipes-support/ntp/files/ntp.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-support/ntp/files/ntp.conf b/meta-networking/recipes-support/ntp/files/ntp.conf
index 875b7eb..676e186 100644
--- a/meta-networking/recipes-support/ntp/files/ntp.conf
+++ b/meta-networking/recipes-support/ntp/files/ntp.conf
@@ -1,7 +1,7 @@
 # This is the most basic ntp configuration file
 # The driftfile must remain in a place specific to this
 # machine - it records the machine specific clock error
-driftfile /etc/ntp.drift
+driftfile /var/lib/ntp/drift
 # This should be a server that is close (in IP terms)
 # to the machine.  Add other servers as required.
 # Unless you un-comment the line below ntpd will sync



More information about the Openembedded-commits mailing list