From b45eb1a28744a0906f612a80a32a91aceae2582f Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Wed, 31 Mar 2004 03:26:34 +0000 Subject: [PATCH] added some doc s!_UV_LOCKS!_VS_LOCKS! git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1408 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/functions | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/util-vserver/scripts/functions b/util-vserver/scripts/functions index 4b50d0a..d3a2c40 100644 --- a/util-vserver/scripts/functions +++ b/util-vserver/scripts/functions @@ -71,6 +71,7 @@ function getPhysicalDir ( set -P && cd "$1" && pwd ) } +## Usage: logging function logging { if test "$_VS_LOGFILE"; then @@ -80,6 +81,7 @@ function logging fi } +## Usage: warning function warning { if test "$_VS_ERRFILE"; then @@ -89,6 +91,7 @@ function warning fi } +## Usage: panic function panic { if test "$_VS_ERRFILE"; then @@ -100,6 +103,7 @@ function panic exit 1 } +## Usage: execute function execute { test -z "${DEBUG_EXEC:-}" || echo "$@" @@ -115,7 +119,7 @@ function isNumber return 0 } -_UV_LOCKS='' +_VS_LOCKS='' ## Usage: lock [] function lock { @@ -127,7 +131,7 @@ function lock $_LOCKFILE "$1" $tmp $2 & cat <$tmp >/dev/null - _UV_LOCKS="$! $_UV_LOCKS" + _VS_LOCKS="$! $_VS_LOCKS" } ## Usage: unlock [] @@ -136,14 +140,14 @@ function unlock local num=$1 local i - set -- $_UV_LOCKS + set -- $_VS_LOCKS while test "$#" -gt 0; do kill -HUP "$1" >/dev/null || : shift test "$num" != 1 || break test -z "$num" || let --num done - _UV_LOCKS="$@" + _VS_LOCKS="$@" } function _pkgMountBindDir() -- 1.8.1.5