From owner-freebsd-emulation@FreeBSD.ORG Tue Apr 12 20:00:20 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 85B26106566C for ; Tue, 12 Apr 2011 20:00:20 +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 59B70153AC8; Tue, 12 Apr 2011 20:00:20 +0000 (UTC) Message-ID: <4DA4AF55.10603@FreeBSD.org> Date: Tue, 12 Apr 2011 13:00:21 -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: rnejdl@ringofsaturn.com References: <634914A010D0B943A035D226786325D422B76F91CA@EXVMBX020-12.exch020.serverdata.net> <4DA4A6C7.6050803@FreeBSD.org> <634914A010D0B943A035D226786325D422B76F9205@EXVMBX020-12.exch020.serverdata.net> In-Reply-To: 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: AW: 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 20:00:20 -0000 On 4/12/2011 12:42 PM, Rusty Nejdl wrote: > While I was developing a port for ASSP2, I had to have it do a wait > while it was shutting that down: > > > stop_cmd=assp2_daemon_stop > > command=/usr/local/sbin/assp2 > command_interpreter=/usr/local/bin/perl > pidfile=/var/db/assp2/pid > > assp2_daemon_stop() > { > if test -f /var/db/assp2/pid; then > checkyesno assp_enable&& FYI, whether or not the service is enabled is irrelevant to running the stop method. rc.subr has been modified to run stop unconditionally for some time now. 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/