#!/bin/sh # # $FreeBSD: head/emulators/open-vm-tools/files/vmware-guestd.in 337221 2013-12-22 22:23:06Z swills $ # # PROVIDE: vmware-guestd # REQUIRE: DAEMON netif # 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"