Skip to content

Instantly share code, notes, and snippets.

@jagland
Created November 15, 2014 10:16
Show Gist options
  • Save jagland/a4a2e80550fd0cb59ba6 to your computer and use it in GitHub Desktop.
Save jagland/a4a2e80550fd0cb59ba6 to your computer and use it in GitHub Desktop.
VMware Tools - Gentoo Init Script
#!/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