aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/vmware-guestd3/files
diff options
context:
space:
mode:
authormatusita <matusita@FreeBSD.org>2001-11-11 14:59:28 +0800
committermatusita <matusita@FreeBSD.org>2001-11-11 14:59:28 +0800
commitcbc1a1c189c598e93a6d73ca3d19bab95cd377c9 (patch)
tree57fb81efb5942be50d275755a12837e8800996dc /emulators/vmware-guestd3/files
parent2368001c93645b1180eec8130287264f6e9092db (diff)
downloadfreebsd-ports-graphics-cbc1a1c189c598e93a6d73ca3d19bab95cd377c9.tar.gz
freebsd-ports-graphics-cbc1a1c189c598e93a6d73ca3d19bab95cd377c9.tar.zst
freebsd-ports-graphics-cbc1a1c189c598e93a6d73ca3d19bab95cd377c9.zip
Add vmware-guestd, a daemon for VMware 3.x FreeBSD guest OS.
Diffstat (limited to 'emulators/vmware-guestd3/files')
-rw-r--r--emulators/vmware-guestd3/files/vmware-guestd.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/emulators/vmware-guestd3/files/vmware-guestd.sh b/emulators/vmware-guestd3/files/vmware-guestd.sh
new file mode 100644
index 00000000000..c8759cb4ace
--- /dev/null
+++ b/emulators/vmware-guestd3/files/vmware-guestd.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/checkvm >/dev/null; then
+ ${PREFIX}/sbin/vmware-guestd & && echo -n ' vmware-guestd'
+ fi
+ ;;
+stop)
+ exec 2>/dev/null
+ ulimit -c 0
+ if ${PREFIX}/sbin/checkvm >/dev/null; then
+ killall vmware-guestd && echo -n ' vmware-guestd'
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0