Subject: Re: [vserver] veserver context stop problemematic ?
From: Xavier de Poorter <xavier-ml@jvweb.fr>
Date: Thu, 10 Jan 2008 15:57:42 +0100

Raoul Bhatia [IPAX] a écrit :
> On Thu, 2008-01-10 at 15:25 +0100, Xavier de Poorter wrote:
>> Raoul Bhatia [IPAX] a écrit :
>>> On Thu, 2008-01-10 at 14:47 +0100, Xavier de Poorter wrote:
>>>> Hi everyone,
>>>>
>>>> vserver vsbase2 stop
>>>>   * Stopping system log daemon... 
>>>>                                                   [ OK ]
>>>>   * Terminating all remaining processes... 
>>>>                                                          killall5: can't 
>>>> read sid for pid 1
>>>>
>>>>  
>>>>                                                   [ OK ]
>>>>   * Sending all processes the KILL signal... 
>>>>                                                          killall5: can't 
>>>> read sid for pid 1
>>>>
>>>>  
>>>>                                                   [ OK ]
>>>>   * Will now restart
>>>> /usr/lib/util-vserver/vserver.stop: line 85: 14496 Killed 
>>>>     "${NICE_CMD[@]}" "${CHBIND_CMD[@]}" "$_VTAG" --migrate 
>>>> "${OPTS_VTAG_ENTER[@]}" --silent -- $_VCONTEXT $SILENT_OPT --migrate 
>>>> --chroot --xid "$S_CONTEXT" -- "${INITCMD_STOP[@]}"
>>>>
>>>> Is it problematic ?
>>> mhm, to me, this looks like a broken initscript during shutdown.
>>> search /etc/rc6.d/ for "killall5" or so. 
>>>
>>> cheers,
>>> raoul
>> if i do : chmod -x vsbase2/etc/init.d/sendsigs
> 
> i can only guess what sendsigs does. it sends term/kill signals to all
> processes. solutions i see:
> 
> 1) rm ./vsbase2/etc/rc6.d/S20sendsigs
> 2) edit ./vsbase2/etc/rc6.d/S20sendsigs and look for the "killall" 
>    lines and try to a) either comment them out or b) guard pid 1 
>    against the kill
> 
thanks raoul
if the vserver mechanism kill himself the unshutdowned processes then i 
choose the 1)

and what about this ? :
/usr/lib/util-vserver/vserver.stop: line 85:  9101 Killed 
    "${NICE_CMD[@]}" "${CHBIND_CMD[@]}" "$_VTAG" --migrate 
"${OPTS_VTAG_ENTER[@]}" --silent -- $_VCONTEXT $SILENT_OPT --migrate 
--chroot --xid "$S_CONTEXT" -- "${INITCMD_STOP[@]}"

cordialement,
xavier