From: Faiyaz Ahmed Date: Thu, 30 Aug 2007 20:24:27 +0000 (+0000) Subject: DHOZAC suggestion to remove race between vuseradd and vcached. The only time there... X-Git-Tag: util-vserver-0.30.214-1~23 X-Git-Url: http://git.onelab.eu/?p=util-vserver.git;a=commitdiff_plain;h=944c3e3e57da71af1adbb184866505b02b69d26b DHOZAC suggestion to remove race between vuseradd and vcached. The only time there would be trash to take out is if a previous vcached/vuseradd instance was running when the box was rebooted. --- diff --git a/scripts/vcached b/scripts/vcached index 3bd027d..0e09c7e 100755 --- a/scripts/vcached +++ b/scripts/vcached @@ -16,7 +16,7 @@ # Mark Huang # Copyright (c) 2004-2005 The Trustees of Princeton University # -# $Id: vcached,v 1.14 2007/06/28 21:02:41 dhozac Exp $ +# $Id: vcached,v 1.14 2007/07/05 19:05:14 dhozac Exp $ # PATH=/sbin:/usr/sbin:$PATH @@ -79,7 +79,7 @@ test -e "$UTIL_VSERVER_VARS" || { setattr --barrier $__DEFAULT_VSERVERDIR # take out the trash -rm -rf "$__DEFAULT_VSERVERDIR/.vtmp" +#rm -rf "$__DEFAULT_VSERVERDIR/.vtmp" mkdir -p "$__DEFAULT_VSERVERDIR/.vcache" mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"