diff options
author | erdgeist <erdgeist@erdgeist.org> | 2010-01-11 03:23:23 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2010-01-11 03:23:23 +0000 |
commit | 90caf58048fc0351621ee656e7d08ea1d851177e (patch) | |
tree | 68a402cb5a1d3b6c1188446159844d072dd9cf35 | |
parent | 2dd2e0b55e93fd4be704199091be528d5c75d5e5 (diff) |
Make non runnable jails stoppable
-rwxr-xr-x | ezjail.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |