diff options
Diffstat (limited to 'debian/openssh-server.init')
-rw-r--r-- | debian/openssh-server.init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/openssh-server.init b/debian/openssh-server.init index a1cc67797..75ea71525 100644 --- a/debian/openssh-server.init +++ b/debian/openssh-server.init | |||
@@ -21,6 +21,12 @@ if test -f /etc/default/ssh; then | |||
21 | . /etc/default/ssh | 21 | . /etc/default/ssh |
22 | fi | 22 | fi |
23 | 23 | ||
24 | # Are we in a virtual environment that doesn't support modifying | ||
25 | # /proc/self/oom_adj? | ||
26 | if grep -q 'envID:.*[1-9]' /proc/self/status; then | ||
27 | unset SSHD_OOM_ADJUST | ||
28 | fi | ||
29 | |||
24 | . /lib/lsb/init-functions | 30 | . /lib/lsb/init-functions |
25 | 31 | ||
26 | if [ -n "$2" ]; then | 32 | if [ -n "$2" ]; then |