### VServers
# If vservers are configured, check that the ones listed in $vsnames do exist.
local usevserver=no
-if [ $vservers_are_available = yes ]; then
+if [ $vservers_are_available = yes -a -n "$vsnames" ]; then
if [ "$vsnames" = all ]; then
vsnames="$found_vservers"
else
vdir=""
vexec=""
else
+ if ! vservers_running "$vsname"; then
+ error "vserver $vsname is not running!"
+ return 1
+ fi
info "Running on vserver $vsname"
vdir="$VROOTDIR/$vsname"
vexec="$VSERVER $vsname exec"