On Tue, 17 May 2011 18:19:37 -0700
Nathan Coulson <[email protected]> wrote:

> On Mon, May 16, 2011 at 1:29 PM, Bruce Dubbs <[email protected]> wrote:
> 
> > Pol Vangheluwe wrote:
> > > I see the following complaint when my LFS-6.8 systems starts up:
> > >
> > > pol [ /var/log ]$ dmesg | grep sshd
> > > sshd (344): /proc/344/oom_adj is deprecated, please use
> > /proc/344/oom_score_adj instead.
> >
> > > I don't know if a newer version of  openSSH already has tackled this
> > problem.
> > > There is at first sight nothing about it on the openSSH website.
> >
> > I think that problem is fixed in openssh-5.8p1.tar.gz.
> >
> > BLFS is not updated as much as it should be.  Always check if there is a
> > newer package.  It is usually, but not always, OK to use the newer
> > version.
> 
> 
> >   -- Bruce
> 
> 
> It is a bootscript problem,  been meaning to report it...
> 
> /etc/rc.d/init.d/sshd
> 
>     start)
>         boot_mesg "Starting SSH Server..."
>         # Also prevent ssh from being killed by out of memory conditions
>         loadproc /usr/sbin/sshd
>         sleep 1
>         echo "-16" >/proc/`cat $pidfile`/oom_adj
>         ;;
> 

Another option is to fix openssh before you compile it.
Before you run make:

sed -i 's#oom_adj"#oom_score_adj"#' openbsd-compat/port-linux.c

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to