Re: [vserver] syntax error in vserver script

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

From: edward_at_paradigm4.com.au
Date: Sat Mar 23 2002 - 07:43:34 EST


On Saturday, 23 March 2002 at 11:09, Razvan Cosma wrote:

> Hello,
> Something in this line
>
> /usr/sbin/chbind --silent --ip $IPROOT \
> /usr/sbin/chcontext --secure --silent --ctx $S_CONTEXT \
> /usr/lib/vserver/vserverkillall
>
> is causing the following error:
>
> vserver ftp stop
> Stopping the virtual server ftp
> Server ftp is running
> ipv4root is now 10.0.0.1
> New security context is 0
> Shutting down proftpd:
> sleep 2
> Killing all processes
> expr: syntax error
> ^^^^^^^^^^^
>
> I am using vserver-0.13-1, kernel 2.4.17ctx-8 (compiled by me)
> and only proftpd-1.2.4.tar.bz2 runs in the vserver. Any hints? 10x.
>

It is this line:

CTX=`eval expr $CTX + 0`

in /usr/lib/vserver/vserverkillall

The following worked for me:

Replace the line

CTX=`cat /proc/self/status | grep s_context | sed s/s_context://`

with

CTX=`awk '/^s_context:/{print $2}' /proc/self/status`

hth
Ed


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

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT