[Vserver] util-vserver starts all vservers, not just those with mark "default"

From: Andreas Baetz <lac01_at_web.de>
Date: Fri 21 Apr 2006 - 09:56:52 BST
Message-Id: <200604211056.53236.lac01@web.de>


I do have some vservers, and only some of them should be startet when the host starts.
I put "default" in ../apps/init/mark of those servers to be started.
When executing "/etc/init.d/util-vserver start", ALL my vservers get started.

So I checked, and I believe I found the reason.
Please see the patch below. With that it works as expected.
If the error is something else, please tell me.


--- /usr/lib/util-vserver/start-vservers 2006-04-21 10:44:22.000000000 +0200
+++ /usr/lib/util-vserver/start-vservers.new 2006-04-21 10:44:08.000000000 +0200
@@ -130,7 +130,7 @@
     let --i
- { test "$OPTION_MARK_ANY"; } || \
+ { test -z "$OPTION_MARK_ANY"; } || \
     { test -n "$OPTION_MARK" -a -r "$f" && grep -qx "$OPTION_MARK" "$f"; } || \
     { test -z "$OPTION_MARK" && test ! -e "$f"; } || \
     unset vservers[$i]

# vserver-info
                   VS-API: 0x00020001
             util-vserver: 0.30.210; Apr 18 2006, 16:57:18

                       CC: gcc, gcc (GCC) 4.0.3 (Debian 4.0.3-1)
                      CXX: g++, g++ (GCC) 4.0.3 (Debian 4.0.3-1)
                 CPPFLAGS: ''
                   CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
                 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time'
               build/host: i486-pc-linux-gnu/i486-pc-linux-gnu
             Use dietlibc: yes
       Build C++ programs: yes
       Build C99 programs: yes
           Available APIs: v13,net
            ext2fs Source: e2fsprogs
    syscall(2) invocation: alternative
      vserver(2) syscall#: 273/glibc

                   prefix: /usr
        sysconf-Directory: /etc
            cfg-Directory: /etc/vservers
         initrd-Directory: $(sysconfdir)/init.d
       pkgstate-Directory: /var/run/vservers
          vserver-Rootdir: /var/lib/vservers

Assumed 'SYSINFO' as no other option given; try '--help' for more information.
Vserver mailing list
Received on Fri Apr 21 10:00:06 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 21 Apr 2006 - 10:00:12 BST by hypermail 2.1.8