Created
November 15, 2014 10:16
-
-
Save jagland/a4a2e80550fd0cb59ba6 to your computer and use it in GitHub Desktop.
VMware Tools - Gentoo Init Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/runscript | |
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# This a wrapper for the vmware-tools init script, as it doesn't seem to work well under Gentoo. | |
extra_started_commands="reload" | |
depend() { | |
need logger | |
} | |
start() { | |
ebegin "Starting ${SVCNAME}" | |
start-stop-daemon --start --exec /etc/init.d/vmware-tools start >/dev/null 2&>1 | |
eend $? | |
} | |
stop() { | |
ebegin "Stopping ${SVCNAME}" | |
start-stop-daemon --stop --exec /etc/init.d/vmware-tools stop >/dev/null 2&>1 | |
eend $? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment