source: npl/system/util_vserver/root/etc/boot.d/vservers @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 678 bytes
Line 
1#!/bin/bash
2echo "/usr/lib/util-vserver/vshelper" >/proc/sys/kernel/vshelper
3/usr/lib/util-vserver/vprocunhide
4
5cd /etc/vservers
6
7#start all vservers that are not marked down
8for VSERVER in *; do
9    [ -d $VSERVER ] || continue;
10    if ! [ -f $VSERVER/down ]; then
11        echo -e "\n[ Starting vserver $VSERVER... ]";
12        if ! vserver $VSERVER start; then
13            ERROR=1
14        fi
15    fi
16done
17
18#something went wrong?
19[ "$ERROR" ] && exit 1
20
21#are all vservers running?
22for VSERVER in *; do
23    [ -d $VSERVER ] || continue;
24    if ! [ -f $VSERVER/down ]; then
25        echo -e "\n[ Checking vserver $VSERVER... ]";
26        vserver $VSERVER status || exit 1
27    fi
28done
29
Note: See TracBrowser for help on using the repository browser.