From owner-freebsd-hackers@FreeBSD.ORG Sat May 22 18:03:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81F7D16A4CE for ; Sat, 22 May 2004 18:03:59 -0700 (PDT) Received: from siue.dnsalias.net (11spidialup76.famvid.com [208.5.212.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37BEC43D2D for ; Sat, 22 May 2004 18:03:58 -0700 (PDT) (envelope-from wgrim@siue.edu) Received: from siue.edu (persephone.bsdaemon.org [192.168.0.101]) by siue.dnsalias.net (Postfix) with ESMTP id 0BC6A233D10 for ; Sat, 22 May 2004 20:04:52 -0500 (CDT) Message-ID: <40AFF8B3.40009@siue.edu> Date: Sat, 22 May 2004 20:04:51 -0500 From: "William M. Grim" Organization: SIUE User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: multipart/mixed; boundary="------------000701030804000503040700" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Jails: An rc.d script X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2004 01:03:59 -0000 This is a multi-part message in MIME format. --------------000701030804000503040700 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi! I've written an rc.d script that can start/stop/restart jails, if they follow a certain pattern of setup. I'm strongly considering the placement of this in ports or base (ports seems most appropriate). Basically, if you have jails in /usr/local/var/jail/, my script can start it up automatically, as long as the IP is reachable by `host` (I know, it requires a little more work to remove this dependency for 192.168. addresses, etc). However, I was wondering if anyone would want to test it? All you have to do is take my attached script and place it in /usr/local/etc/rc.d/. If you have your jails located somewhere else, then edit the JAILBASE= line in the script. I would appreciate any constructive criticism about this script so that I can make it better. If you have any improvements you make, feel free to send them to me as well. I'll attempt to make it better over time and to write a man page for it. Many thanks. -- William Michael Grim Student, Southern Illinois University at Edwardsville Unix Network Administrator, SIUE, Computer Science dept. Phone: (217) 341-6552 Email: wgrim@siue.edu --------------000701030804000503040700--