[oe-commits] Roy Li : ntp: comment out the invalid server
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 29 15:58:51 UTC 2013
Module: meta-openembedded.git
Branch: master
Commit: 03e758cd6744d2be22636ce59dd74d8cfafd4783
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=03e758cd6744d2be22636ce59dd74d8cfafd4783
Author: Roy Li <rongqing.li at windriver.com>
Date: Fri Nov 29 10:37:37 2013 +0800
ntp: comment out the invalid server
When ntpd starts, it will create a daemon to connect this invalid server,
and fail, then ntpd will create other daemon to connect the local-only
(127.127.1.0) server.
The users should be aware that they need to configure the correct ntp
servers, a invalid server will lead to a redundant daemon, so it is better
to comment this example server to wait user to configure
Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Joe MacDonald <joe at deserted.net>
---
meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb | 1 +
meta-networking/recipes-support/ntp/files/ntp.conf | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
index d6bee9b..0698a63 100644
--- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
+++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb
@@ -70,6 +70,7 @@ do_install() {
sed -i "s:/lib/security:${base_libdir}/security:" ${D}${sysconfdir}/pam.d/vsftpd
sed -i "s:ftpusers:vsftpd.ftpusers:" ${D}${sysconfdir}/pam.d/vsftpd
fi
+ install -d ${D}${localstatedir}/run/vsftpd/empty
}
INITSCRIPT_PACKAGES = "${PN}"
diff --git a/meta-networking/recipes-support/ntp/files/ntp.conf b/meta-networking/recipes-support/ntp/files/ntp.conf
index a9cc838..e80b661 100644
--- a/meta-networking/recipes-support/ntp/files/ntp.conf
+++ b/meta-networking/recipes-support/ntp/files/ntp.conf
@@ -5,7 +5,9 @@ driftfile /etc/ntp.drift
# This obtains a random server which will be close
# (in IP terms) to the machine. Add other servers
# as required, or change this.
-server time.server.example.com
+#
+# server time.server.example.com
+#
# Using local hardware clock as fallback
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
server 127.127.1.0
More information about the Openembedded-commits
mailing list