Today I  did some test  the current release both the patch and util-vserver.


vserver stop gives me an error:

....
++ test -n 0 -ne 0
/usr/local/sbin/vserver: line 740: test: too many arguments
...

which comes  from vserver.functions:
elif test -n "[EMAIL PROTECTED]" -ne 0; then

Is there just the first -n too much?!





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. With old style configuration this works.



What am I doing wrong?

spacelord:/usr/local/lib/util-vserver# vserver mail start 2>&1 | grep -i 
fakeinit
++ declare -a 'OPTS_VATTRIBUTE=(--flag fakeinit)'
++ _IS_FAKEINIT=
++ _IS_FAKEINIT=1
++ CHCONTEXT_INIT_OPTS=(--disconnect --flag fakeinit)
++ /usr/local/sbin/chbind --silent --ip 192.168.2.251 
-- /usr/local/sbin/vcontext --create --silent --xid 4 
-- /usr/local/sbin/vnamespace --set -- /usr/local/sbin/vlimit 
--dir /etc/vservers/mail/rlimits --missingok -- /usr/local/sbin/vsched --xid 
self -- /usr/local/sbin/vuname --xid self --dir /etc/vservers/mail/uts 
--missingok -- /usr/local/sbin/vuname --xid self --set -t 
context=/etc/vservers/mail -- /usr/local/sbin/vattribute --set --secure 
--flag fakeinit --bcap CAP_NET_RAW --bcap CAP_NET_ADMIN --bcap CAP_SYS_ADMIN 
-- /usr/local/lib/util-vserver/save_ctxinfo /etc/vservers/mail /usr/bin/env 
-i -- /usr/local/sbin/vcontext --migrate-self --endsetup --chroot --silent 
--initpid --disconnect -- /etc/init.d/rc 3



spacelord:/usr/local/lib/util-vserver# chcontext --xid 4 ps aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root      9870  0.0  0.0  1624  588 ?        Ss   16:11   0:00 /sbin/syslogd
root     24253  0.0  0.0  1572  428 ?        Ss   16:11   0:00 /usr/sbin/inetd
daemon   28817  0.0  0.0  1760  636 ?        Ss   16:11   0:00 /usr/sbin/atd
root     13778  0.0  0.0  1816  724 ?        Ss   16:11   0:00 /usr/sbin/cron
root     10208  0.0  0.0  2372  724 pts/2    R+   16:12   0:00 ps aux



spacelord:/usr/local/lib/util-vserver# chcontext --xid 4 pstree
?âââatd
  ââcron
  ââinetd
  ââsyslogd


Shouldn't the following show me an init-process even if not specified in the 
vserver config?


spacelord:/usr/local/lib/util-vserver# chcontext --flag fakeinit --xid 4 ps 
aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root      9870  0.0  0.0  1624  588 ?        Ss   16:11   0:00 /sbin/syslogd
root     24253  0.0  0.0  1572  428 ?        Ss   16:11   0:00 /usr/sbin/inetd
daemon   28817  0.0  0.0  1760  636 ?        Ss   16:11   0:00 /usr/sbin/atd
root     13778  0.0  0.0  1816  724 ?        Ss   16:11   0:00 /usr/sbin/cron
root     32713  0.0  0.0  2372  724 pts/2    R+   16:12   0:00 ps aux


TIA,
Oliver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to