About this list Date view Thread view Subject view Author view Attachment view

From: Oliver Heinz (oliver.heinz_at_schunk.net)
Date: Sun 13 Feb 2005 - 00:12:41 GMT


Herbert Poetzl schrieb:

>On Sat, Feb 12, 2005 at 04:17:13PM +0100, Oliver Heinz wrote:
>
>
>>My second Problem is that the fakeinit still seems not to work
>>for me, if I specify fakeinit in the flags it is recognized
>>by the corresponding function in vserver.functions but I still
>>can't see an init on pid 1 inside the vserver.
>>
>>
>
>hmm, you should change the initstyle from sysv
>to plain too, because otherwise the 'init' task
>will be the runlevel script (/etc/init.d/rc) which
>will not last long enough to be noticed (as init
>process ;)
>
>
>
I changed the init style to plain. Now for the processlist everything
seems to be fine (the random process ids are there because i use parts
of the grsecurity patchset):

spacelord:/mnt/disk0/vservers/mail/etc# vserver mail enter
spacelord:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1580 516 ? S 23:34 0:00 init [2]
root 1305 0.0 0.0 1712 696 ? Ss 23:34 0:00 /sbin/syslogd
root 7798 0.0 0.0 1572 428 ? Ss 23:34 0:00 /usr/sbin/inetd
daemon 27211 0.0 0.0 1760 636 ? Ss 23:34 0:00 /usr/sbin/atd
root 1542 0.0 0.0 1816 724 ? Ss 23:34 0:00 /usr/sbin/cron
root 17269 15.0 0.1 4832 1632 pts/0 S 23:34 0:00 /bin/bash -login
root 30810 0.0 0.1 2560 848 pts/0 R+ 23:34 0:00 ps aux

spacelord:/# pstree
init─┬─atd
├─cron
├─inetd
└─syslogd

That's what I needed, an process that is shown as pid 1 - because some
tools rely on that.

But now I got another Problem: Why am I still in the root server
filesystem now, not change rooted to the vservers root. Everything else
seems to be o.k. (i.e. networking is in vserver context). Seems I have
to change a little more to get from sysv to plain, or? Can you please
give me a hint, point me to some documentation or tell me where to dig
further?

Did I already mention that vserver is really great :-) I use it
basically to keep system complexity low - one vserver for each task.

TIA,
Oliver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 13 Feb 2005 - 00:13:22 GMT by hypermail 2.1.3