From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 12 19:23:50 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 64D08106566C for ; Tue, 12 Apr 2011 19:23:50 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 467ED14E79F; Tue, 12 Apr 2011 19:23:50 +0000 (UTC) Message-ID: <4DA4A6C7.6050803@FreeBSD.org> Date: Tue, 12 Apr 2011 12:23:51 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tobias Oberstein References: <634914A010D0B943A035D226786325D422B76F91CA@EXVMBX020-12.exch020.serverdata.net> In-Reply-To: <634914A010D0B943A035D226786325D422B76F91CA@EXVMBX020-12.exch020.serverdata.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-emulation@freebsd.org" Subject: Re: rc.d script for running multiple VirtualBox VMs from /etc/rc.conf X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2011 19:23:50 -0000 On 4/12/2011 12:15 PM, Tobias Oberstein wrote: > I wanted to configure multiple VirtualBox VMs to startup automatically at boot time and generally be a nice citizen to the FreeBSD way of starting up stuff. Thanks for providing this, however there are several problems, some of which you outlined in your post. The canonical way to do what you're suggesting is to copy the script so that you have one script per process you want to start, each with a different $name. That way you avoid a lot of the complexity that you've created, and everything works. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/