Re: [vserver] Can't see all my processes?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Fri 09 May 2008 - 21:22:03 BST
Message-ID: <40329.192.168.101.12.1210364523.squirrel@intranet>

Ed W wrote:
> Hi, anyone shed some light on why not all my processes seem to be
> visible in my vserver?
>
> I needed a caching dns server so created my usual vanilla shell and
> added dnscache and the other djb daemon tools
>
> If I now fire up the dnscache then it seems to work (as expected) and
> stops working when I shut down the vserver (as expected)
>
> Curiously though the process is not visible to "ps" (although most of
> the other daemon tools processes are...) The process is visible to vps
> in the host server though...

Is it running as a non-root user? Did you enable that process-hiding thing
in grsec?

> In vserver "dnscache"
>
> dnscache / # ps ax
> PID TTY STAT TIME COMMAND
> 14641 ? Ss 0:00 /usr/bin/svscan /service
> 14642 ? S 0:00 supervise dnscachex
> 14644 ? S 0:00 supervise log
> 14645 ? S 0:04 multilog t ./main
> 14659 ? Ss 0:00 /usr/sbin/syslog-ng
> 14672 ? Ss 0:00 /usr/sbin/cron
> 26442 pts/3 S+ 0:00 login
> 26489 pts/2 Ss 0:00 /bin/bash -login
> 29159 pts/2 R+ 0:00 ps ax
>
>
> And on the host:
>
> svr3 vservers # vps ax|grep dnsc
> 9785 0 MAIN pts/3 S+ 0:00 grep --colour=auto dnsc
> 14641 1011 dnscache ? Ss 0:00 /usr/bin/svscan /service
> 14642 1011 dnscache ? S 0:00 supervise dnscachex
> 14643 1011 dnscache ? S 0:03 /usr/bin/dnscache
> 14644 1011 dnscache ? S 0:00 supervise log
> 14645 1011 dnscache ? S 0:01 multilog t ./main
> 14659 1011 dnscache ? Ss 0:00 /usr/sbin/syslog-ng
> 14672 1011 dnscache ? Ss 0:00 /usr/sbin/cron
>
>
> Kernel 2.6.22.19-grsec2.1.11-vs2.2.0.6 - Can anyone explain?
>
> Ed W
>

-- 
Daniel Hokka Zakrisson
Received on Fri May 9 21:22:27 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 09 May 2008 - 21:22:29 BST by hypermail 2.1.8