From owner-freebsd-emulation@FreeBSD.ORG Tue Jan 29 18:07:17 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 28C4AD21 for ; Tue, 29 Jan 2013 18:07:17 +0000 (UTC) (envelope-from joe.k@bendtel.com) Received: from mail.bendtel.com (rtracker.bendtel.com [66.39.177.42]) by mx1.freebsd.org (Postfix) with ESMTP id 15A73D99 for ; Tue, 29 Jan 2013 18:07:16 +0000 (UTC) Received: from joek.bendtel.com (90.b160.bendtel.net [66.39.160.90]) by mail.bendtel.com (Postfix) with ESMTPA id B35AEEABF8 for ; Tue, 29 Jan 2013 09:58:06 -0800 (PST) Received: by joek.bendtel.com (sSMTP sendmail emulation); Tue, 29 Jan 2013 09:58:06 -0800 From: joe.k@bendtel.com To: freebsd-emulation@freebsd.org Subject: vboxheadless RC script Date: Tue, 29 Jan 2013 09:58:06 -0800 Message-ID: <10300780.kr669brmbD@joek-gentoo> User-Agent: KMail/4.9.3 (Linux/3.6.9; KDE/4.9.3; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 29 Jan 2013 18:07:17 -0000 It's really nice that the FreeBSD port for VirtualBox has a nice rc script for managing automatic startup and shutdown of VM's. It would be nicer though if it didn't rely on pid files though for keeping track of the vm states, as any stopping and starting a VM with the VBoxManage client will invalidate the pid. Would it be possible to add "update pid" function to the rc script, or if it finds an invalid pid, check the state of the the VM with "VBoxManage list runningvms" or "pgrep VBoxHeadless"? Thanks! -- Joe Kowalski