X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvserver.functions;h=546cc6ac3a8bfcc2f6d743e551543d3337091709;hb=d3dfb727f5db2f296c9e252a2a4645bb7c6394e8;hp=30e82f03ca552f28cf9a9fd539630502df7d5aea;hpb=3564d8678a2134185e5e6e83083de027b359ca28;p=util-vserver.git diff --git a/scripts/vserver.functions b/scripts/vserver.functions index 30e82f0..546cc6a 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -1080,6 +1080,15 @@ WARNING: There is no cachedirectory configured for this vserver; /proc/uptime can not be accessed. Usually, this is caused by procfs-security. Please read the FAQ for more details http://linux-vserver.org/Proc-Security" + + test -e "$cfgdir"/context || { + TYPE=$( $_VSERVER_INFO 49152 XIDTYPE ) + test "$TYPE" != "static" || panic $"\ +The kernel does not have dynamic contexts enabled. Please configure +a static one by executing + + echo [number between 2 and 49151] > $cfgdir/context" + } }