From: | "Kevin L. Kane" <kevin.kane@xxxxxxxxx> |
Date: | Fri, 28 Dec 2007 22:36:57 -0500 |
I was getting very annoyed at the fact that when I do /etc/rc.d/jail restart it restarts all jails and there didnt seem to be an easy way to do that for only one jail on a machine. The attached patch allows you to do /etc/rc.d/jail (stop/start/restart) (jailname) Something that might need more thinking(this works well enough for me) but on stop it searchs the jail list for a jail referenced by jailname. It then finds the JID based on hostname and issues jexec JID kill -TERM -1. If your jls gets filled up with multiple entries for the same hostname it gets kinda broken, also if you have jails that do in fact have the same hostname you also get confusion. Maybe it should match all fields instead of just hostname? -Kevink -- Kevin L. Kane kevin.kane at gmail.com
Attachment:
startstopindividualjails.patch
Description: Binary data