#!/bin/sh # $FreeBSD: head/emulators/virtualbox-ose-additions/files/vboxservice.in 340872 2014-01-24 00:14:07Z mat $ # 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="%%PREFIX%%/sbin/VBoxService" load_rc_config $name : ${vboxservice_enable="NO"} run_rc_command "$1"