[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ezjail-admin delete -f -w <jailname> stops all jails


When using the new -f switch for "ezjail-admin delete"
it stops all jails, not only the jail that needs to be stopped
so it can be deleted.

The patch below fixes the problem for me.

Best regards

Thomas Steen Rasmussen

$ diff -u /usr/local/bin/ezjail-admin.orig /usr/local/bin/ezjail-admin
--- /usr/local/bin/ezjail-admin.orig    2012-01-14 17:46:48.020646096 +0100
+++ /usr/local/bin/ezjail-admin 2012-01-14 17:46:39.992833655 +0100
@@ -770,7 +770,7 @@
     [ "${ezjail_forcestop}" ] || exerr "Error: Jail appears to be still
running.\n  '${ezjail_admin} stop ${ezjail_name}' it first or use
'${ezjail_admin} delete -f ${ezjail_name}' to force stop."
     # This one will also exerr on failure
-    start_stop_jail_by_script onestop
+    start_stop_jail_by_script onestop ${ezjail_name}
   if [ "${ezjail_attached}" ]; then