source: npl/system/util_vserver/root/etc/shutdown.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: 338 bytes
Line 
1#!/bin/bash
2
3cd /etc/vservers
4
5#stop all vservers
6for VSERVER in `/usr/sbin/vserver-stat | sed 's/.* //'|grep -v NAME`; do
7    echo -e "\n[ Stopping vserver $VSERVER... ]";
8    if ! /usr/sbin/vserver $VSERVER stop; then
9        echo -e "\n[ $VSERVER shutdown FAILED! ]";
10    else
11        echo -e "\n[ $VSERVER shutdown OK ]";
12    fi
13done
Note: See TracBrowser for help on using the repository browser.