added $_VSERVER_INFO
[util-vserver.git] / util-vserver / scripts / vserver.stop
index 3e1ca8c..55af27d 100644 (file)
@@ -24,7 +24,8 @@ fi
 
 generateOptions   "$VSERVER_DIR"
 
-set +e
+set -e
+cd "$VSERVER_DIR"/vdir/
 execScriptlets    "$VSERVER_DIR" "$VSERVER_NAME" pre-stop
 
 cd "$VSERVER_DIR"/vdir/
@@ -35,7 +36,7 @@ cd "$VSERVER_DIR"/vdir/
     "$_CAPCHROOT"    "${CAPCHROOT_OPTS[@]}" . "${INITCMD_STOP[@]}"
 
 "${INITCMD_STOP_SYNC[@]}"
-"$_CTX_KILL" -c "$S_CONTEXT" -- "${INITKILL_SEQ[@]}"
+sendKillSequence  "$S_CONTEXT" "${INITKILL_SEQ[@]}"
 
 execScriptlets    "$VSERVER_DIR" "$VSERVER_NAME" post-stop