[Clfs-dev] bootscripts-cross-lfs-2.1-pre1 and sshd
Maurice Kinal
mkinal at shawlink.ca
Tue Nov 19 14:06:49 PST 2013
I have two suggestions for the sshd script that improved it's
performance here.
I added this entry for key checking:
===========================================================
if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
boot_mesg "Generating /etc/ssh/ssh_host_ecdsa_key"
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
evaluate_retval
fi
===========================================================
and changed;
echo "-16" >/proc/`cat $pidfile`/oom_adj
to read;
echo "-16" >/proc/`cat $pidfile`/oom_score_adj
which is more in step with newer kernels and eliminates a kernel warning
about oom_adj.
Other than that everything is working as advertised ... so far. :-)
Life is good,
Maurice
More information about the Clfs-dev
mailing list