Revert "sshd: add fallback for oom setings with old kernel."

This reverts commit 1566fb6b55.
xen kernel was dropped and in the code are missing brackets.
This commit is contained in:
Arne Fitzenreiter
2014-05-19 20:12:00 +02:00
parent 3555cff102
commit 33df321e1b

View File

@@ -43,10 +43,7 @@ case "$1" in
(
sleep 3
pid=$(cat /var/run/sshd.pid 2>/dev/null)
[ -n "${pid}" ] && [ -e "/proc/${pid}/oom_score_adj" ] && \
echo "-16" > "/proc/${pid}/oom_score_adj" || \
[ -e "/proc/${pid}/oom_adj" ] && \
echo "-16" > "/proc/${pid}/oom_adj"
[ -n "${pid}" ] && echo "-16" > "/proc/${pid}/oom_score_adj"
) &
;;