On Wed, Apr 06, 2005 at 07:38:23PM +0200, D. B. wrote:
> Hello Sig,
> 
> [EMAIL PROTECTED] schrieb:
> >>>2) When I stop a vserver I get the following but it does infact stop.  
> >>>  Any ideas as to how to correct this?
> >
> >
> >>>sudo vserver-stat
> >>>CTX   PROC    VSZ    RSS  userTIME   sysTIME    UPTIME NAME
> >>>0       32  33.5M     3K   0m35s20   0m30s27  16h26m54 root server
> >>>49187    4   7.4M   767    0m00s14   0m00s60   1m06s54 crux03
> >
> >
> >>sidenote: please don't use dynamic contexts for vserver
> >>guests, make them fixed ...
> >
> >
> >>>sudo vserver crux03 stop
> >>>vkill: vc_ctx_kill(): No such process
> 
> in the vserver.stop script i have changed the line :
> 
>      $_VKILL -s INT -- "$initpid" || fail=1
> to
>     $_VKILL -c "$S_CONTEXT" -s INT -- "$initpid" || fail=1

this was recently improved/changed (and will be in 1.9.6)
in the following way:

 - kill or vkill to the initpid will be blocked
   (this is part of the 'usual' init protection)
 - vkill with pid=1 to context will reach the init

so this will have to change to

        $_VKILL -c "$S_CONTEXT" -s INT -- 1

> >>>Vserver '/usr/local/etc/vservers/crux03' still running unexpectedly; 
> >>>please investigate it manually...
> 
> I think there is a problem with init based vservers.
> Maybe not in general but if the host is SuSE based.
> Vkill signals init to shutdown and immediately after that,
> vserver.stop tries to stop the vserver but the rc script is still
> running.
> I'm wrong ?

don't really, know ... we suspect that killall5
killst the init process too (which terminates the
initscripts) but that might be wrong ...

HTH,
Herbert

> Dieter
> 
> >
> >
> >>this might be related to an issue we are investigating
> >>right now, is your guest init based?
> >
> >
> >Thanks for the contexts tip.
> >
> >Not sure if I understand your question.  Yes it uses init.
> >Inside the vserver:
> >ps -ef
> >UID        PID  PPID  C STIME TTY          TIME CMD
> >root         1     0  0 08:35 ?        00:00:00 init [2]
> >root     24496     1  0 08:35 ?        00:00:00 /usr/sbin/syslogd
> >root     24509     1  0 08:35 ?        00:00:00 /usr/sbin/crond
> >root     24514     1  0 08:35 ?        00:00:00 /usr/sbin/sshd
> >
> >ls -la /etc/inittab
> >-rw-r--r--  1 root root 604 Apr  4 12:09 /etc/inittab
> >
> >If you need anything else just let me know
> >thanks
> >sig
> >_______________________________________________
> >Vserver mailing list
> >[email protected]
> >http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> _______________________________________________
> Vserver mailing list
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to