From 141073f06fbbceb748012bfaa742b8197ebd2c94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 29 Oct 2008 13:54:28 +0000 Subject: [PATCH] - -w test won't work in vserver, and stderr should be redirected priour stdout Changed files: opensshd.init -> 1.33 --- opensshd.init | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/opensshd.init b/opensshd.init index 17c2a2b..a6cf16e 100644 --- a/opensshd.init +++ b/opensshd.init @@ -30,13 +30,11 @@ else fi adjust_oom() { - if [ -e /var/run/sshd.pid ]; then - for pid in $(cat /var/run/sshd.pid); do - if [ -w "/proc/$pid/oom_adj" ]; then - echo "$SSHD_OOM_ADJUST" > "/proc/$pid/oom_adj" 2> /dev/null || : - fi - done - fi + if [ -e /var/run/sshd.pid ]; then + for pid in $(cat /var/run/sshd.pid); do + echo "$SSHD_OOM_ADJUST" 2>/dev/null > /proc/$pid/oom_adj + done + fi } checkconfig() { -- 2.43.0