637c4ad272
In fact, the message was killed in old startup script. While converting to the script for RCng era, I just forget to do that. I don't know that "command_args" variable is ok in this case , but /etc/rc.d/ipxrouted and /etc/rc.d/ntpdate already did it so it seems there's no problem. Since the script is changed, bump PORTREVISION. Noticed by: Alan Barber <abarber _at_ alanbarber.org> Pointy hat to: matusita
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: vmware-guestd
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: FreeBSD
|
|
|
|
PREFIX=%%PREFIX%%
|
|
. %%RC_SUBR%%
|
|
|
|
# Global
|
|
checkvm_cmd="${PREFIX}/sbin/vmware-checkvm > /dev/null"
|
|
|
|
# Functions
|
|
vmware_guest_kmod_start()
|
|
{
|
|
echo 'Loading vmmemctl kernel module.'
|
|
kldload ${PREFIX}/lib/vmware-tools/modules/vmmemctl.ko >/dev/null 2>&1
|
|
}
|
|
|
|
# VMware kernel modules
|
|
name="vmware_guest_kmod"
|
|
rcvar=`set_rcvar`
|
|
start_precmd="${checkvm_cmd}"
|
|
start_cmd="vmware_guest_kmod_start"
|
|
stop_precmd="${checkvm_cmd}"
|
|
stop_cmd=":"
|
|
|
|
load_rc_config $name
|
|
[ -z "$vmware_guest_kmod_enable" ] && vmware_guest_kmod_enable="NO"
|
|
run_rc_command "$1"
|
|
|
|
# VMware guest daemon
|
|
name="vmware_guestd"
|
|
rcvar=`set_rcvar`
|
|
start_precmd="${checkvm_cmd}"
|
|
unset start_cmd
|
|
stop_precmd="${checkvm_cmd}"
|
|
unset stop_cmd
|
|
command="${PREFIX}/sbin/vmware-guestd"
|
|
command_args=">/dev/null 2>&1"
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
load_rc_config $name
|
|
[ -z "$vmware_guestd_enable" ] && vmware_guestd_enable="YES"
|
|
[ -z "$vmware_guestd_flags" ] && vmware_guestd_flags="--background ${pidfile}"
|
|
run_rc_command "$1"
|