X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Ffunctions;h=f3bb242c8d523540670353fd8a964954461c675d;hb=4cc6746ff2ab2c7e32e7bc20111cec287a4fb113;hp=69e57f05deedc6d492e0c90f14c61d76870c7a3f;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/scripts/functions b/scripts/functions index 69e57f0..f3bb242 100644 --- a/scripts/functions +++ b/scripts/functions @@ -480,6 +480,18 @@ function isAvoidNamespace -e "$cfgdir"/nonamespace } +function isNamespaceCleanup +{ + local cfgdir + + $_VSERVER_INFO - FEATURE namespace || return 1 + cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || return 1 + test -e "$cfgdir"/nonamespace-cleanup && return 1 + test -e "$__CONFDIR"/.defaults/namespace-cleanup -o \ + -e "$cfgdir"/namespace-cleanup && return 0 + return 1 +} + ## Usage: getAllVservers [*] function getAllVservers {