Date: Sun, 25 Nov 2012 22:30:27 -0600 From: "FreeBSD Proponent" <fartherreaches@aol.com> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/173925: ports/virtualbox-ose-additions-4.1.22 VBoxService shutdown without core dump Message-ID: <1353904227.240267.10115@freebsd1.localnet> Resent-Message-ID: <201211260440.qAQ4e0T6094110@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173925 >Category: ports >Synopsis: ports/virtualbox-ose-additions-4.1.22 VBoxService shutdown without core dump >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 26 04:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: FreeBSD Proponent >Release: FreeBSD 8.3-RELEASE-p4 amd64 >Organization: >Environment: System: FreeBSD 8.3-RELEASE-p4 #3: Thu Oct 25 02:54:16 CDT 2012 virtualbox-ose-additions-4.1.22 >Description: /usr/local/etc/rc.d/vboxservice script has no proper stop/shutdown process which causes core dumps each time the virtual guest is shut down >How-To-Repeat: >Fix: #!/bin/sh # $FreeBSD: ports/emulators/virtualbox-ose-additions/files/vboxservice.in,v 1.3 2012/01/14 08:55:41 dougb Exp $ # PROVIDE: vboxservice # REQUIRE: DAEMON vboxguest # BEFORE: LOGIN # KEYWORD: shutdown # Define vboxservice_enable in /etc/rc.conf[.local] to enable it. # # vboxservice_enable (bool): Set to "NO" by default. # Set it to "YES" to enable VBoxService. . /etc/rc.subr name="vboxservice" rcvar=vboxservice_enable command="/usr/local/sbin/VBoxService" start_cmd="vboxservice_start" stop_cmd="vboxservice_stop" load_rc_config $name vboxservice_start() { PID=`/bin/ps -ax|/usr/bin/grep VBoxService|/usr/bin/grep -v grep|/usr/bin/awk '{print $1}'` if [ "X$PID" != "X" ]; then echo "*** VBoxService already started" exit 2 else $command ${vboxservice_flags} if [ $? -eq 0 ]; then echo "--- VBoxService started";fi fi } vboxservice_stop() { PID=`/bin/ps -ax|/usr/bin/grep VBoxService|/usr/bin/grep -v grep|/usr/bin/awk '{print $1}'` if [ "X$PID" = "X" ]; then echo "*** VBoxService not started" exit 2 else kill -2 $PID if [ $? -eq 0 ]; then echo "--- VBoxService stopped"; fi fi } run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1353904227.240267.10115>