[PATCH olpc-os-builder 13/14] Disable sshd to save memory and speed up startup

Sascha Silbe silbe at activitycentral.com
Thu Mar 17 11:21:27 EDT 2011


From: Bernie Innocenti <bernie at codewiz.org>

Backup to XS is initiated client side via a cron job, so it won't be affected.

Signed-off-by: Sascha Silbe <silbe at activitycentral.com>
---
 modules/base/kspost.10.core.inc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/base/kspost.10.core.inc b/modules/base/kspost.10.core.inc
index 69d5923..fe32eb9 100644
--- a/modules/base/kspost.10.core.inc
+++ b/modules/base/kspost.10.core.inc
@@ -162,6 +162,9 @@ chmod -x /etc/cron.weekly/99-raid-check
 # seconds (#9964)
 echo "AUTOCREATE_SERVER_KEYS=RSAONLY" >> /etc/sysconfig/sshd
 
+# disable sshd, saves memory and speeds up startup time
+/sbin/chkconfig sshd off
+
 # Fedora's initscripts packages writes /etc/adjtime without a 3rd line,
 # which makes hwclock assume that the hardware clock has local time.
 # this will be fixed in util-linux-2.20, where it will default to UTC.
-- 
1.7.4.1



More information about the Devel mailing list