Project

General

Profile

Actions

Bug #899

closed

add start/stop/restart single jail to /etc/rc.d/jail

Added by kevin.kane almost 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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


Files

startstopindividualjails.patch (2.36 KB) startstopindividualjails.patch kevin.kane, 12/29/2007 03:42 AM
Actions

Also available in: Atom PDF