#!/bin/sh # # $FreeBSD$ # # PROVIDE: vmware-guestd # REQUIRE: DAEMON # BEFORE: LOGIN . /etc/rc.subr # Global checkvm_cmd="%%PREFIX%%/bin/vmware-checkvm > /dev/null" # VMware guest daemon name="vmware_guestd" rcvar=vmware_guestd_enable start_precmd="${checkvm_cmd}" unset start_cmd stop_precmd="${checkvm_cmd}" unset stop_cmd command="%%PREFIX%%/bin/vmtoolsd" command_args="-c %%PREFIX%%/share/vmware-tools/tools.conf -p %%PREFIX%%/lib/open-vm-tools/plugins/vmsvc" 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"