summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin16
1 files changed, 15 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index f8bb9a7..449a6e6 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -41,7 +41,7 @@ ezjail_basesystem="base"
41case `uname -p` in amd64) ezjail_dirlist="${ezjail_dirlist} usr/lib32"; ezjail_basesystem="${ezjail_basesystem} lib32";; esac 41case `uname -p` in amd64) ezjail_dirlist="${ezjail_dirlist} usr/lib32"; ezjail_basesystem="${ezjail_basesystem} lib32";; esac
42 42
43# Synopsis messages 43# Synopsis messages
44ezjail_usage_ezjailadmin="${ezjail_admin} v3.3\nUsage: ${ezjail_admin} [archive|config|console|create|delete|install|list|restore|snapshot|update] {params}" 44ezjail_usage_ezjailadmin="${ezjail_admin} v3.3\nUsage: ${ezjail_admin} [archive|config|console|create|delete|install|list|restore|snapshot|troubleshoot|update] {params}"
45ezjail_usage_install="Usage: ${ezjail_admin} install [-mMpPsS] [-h host] [-r release]" 45ezjail_usage_install="Usage: ${ezjail_admin} install [-mMpPsS] [-h host] [-r release]"
46ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] jailname jailip" 46ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] jailname jailip"
47ezjail_usage_delete="Usage: ${ezjail_admin} delete [-wf] jailname" 47ezjail_usage_delete="Usage: ${ezjail_admin} delete [-wf] jailname"
@@ -50,6 +50,7 @@ ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [
50ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" 50ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname"
51ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]" 51ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]"
52ezjail_usage_restore="Usage: ${ezjail_admin} restore [-f] [-d archivedir] (archive|jailname)..." 52ezjail_usage_restore="Usage: ${ezjail_admin} restore [-f] [-d archivedir] (archive|jailname)..."
53ezjail_usage_troubleshoot="Usage: ${ezjail_admin} troubleshoot [jailname...]"
53ezjail_usage_list="Usage: ${ezjail_admin} list" 54ezjail_usage_list="Usage: ${ezjail_admin} list"
54 55
55################################ 56################################
@@ -1622,6 +1623,19 @@ config)
1622 ;; 1623 ;;
1623 esac 1624 esac
1624 ;; 1625 ;;
1626######################## ezjail-admin TROUBLESHOOT ########################
1627troubleshoot)
1628 shift
1629 [ $# -gt 0 ] || && cd ${ezjail_jailcfgs} && set - `ls -A`
1630
1631 for ezjail; do
1632 fetchjailinfo ${ezjail%.norun}
1633
1634 # Check for existence of jail in our records
1635 [ "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
1636
1637 done
1638 ;;
1625*) 1639*)
1626 exerr "${ezjail_usage_ezjailadmin}" 1640 exerr "${ezjail_usage_ezjailadmin}"
1627 ;; 1641 ;;