summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2010-01-11 03:23:23 +0000
committererdgeist <erdgeist@erdgeist.org>2010-01-11 03:23:23 +0000
commit90caf58048fc0351621ee656e7d08ea1d851177e (patch)
tree68a402cb5a1d3b6c1188446159844d072dd9cf35 /ezjail.sh
parent2dd2e0b55e93fd4be704199091be528d5c75d5e5 (diff)
Make non runnable jails stoppable
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 49d43cb..ae4ffb2 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -50,8 +50,9 @@ do_cmd()
50 fi 50 fi
51 51
52 for ezjail in ${ezjail_list}; do 52 for ezjail in ${ezjail_list}; do
53 # If jail is temporary disabled (dot in name), skip it 53 # If jail is temporary disabled (dot in name), skip it for starts
54 [ -f "${ezjail_prefix}/etc/ezjail/${ezjail}.norun" -o "${ezjail%.*}" != "${ezjail}" ] && echo -n " skipping ${ezjail}" && continue 54 case "${action}" in *stop) ezjail=${ezjail%%.*};; esac
55 [ "${ezjail%.*}" != "${ezjail}" ] && echo -n " skipping ${ezjail}" && continue
55 56
56 # Check for jails config 57 # Check for jails config
57 [ ! -r "${ezjail_prefix}/etc/ezjail/${ezjail}" ] && echo " Warning: Jail ${ezjail} not found." && continue 58 [ ! -r "${ezjail_prefix}/etc/ezjail/${ezjail}" ] && echo " Warning: Jail ${ezjail} not found." && continue