From fca938a0731ad5c2c28de042aa753b976b506ee5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 19 Mar 2016 22:27:18 +0000 Subject: import bumblebee from deprecated repo --- x11-misc/bumblebee/files/bumblebee.initd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 x11-misc/bumblebee/files/bumblebee.initd (limited to 'x11-misc/bumblebee/files/bumblebee.initd') diff --git a/x11-misc/bumblebee/files/bumblebee.initd b/x11-misc/bumblebee/files/bumblebee.initd new file mode 100644 index 00000000..0a9fbb79 --- /dev/null +++ b/x11-misc/bumblebee/files/bumblebee.initd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/bumblebee/files/bumblebee.initd,v 1.2 2012/06/04 19:46:24 pacho Exp $ + +depend() { + need xdm vgl +} + +PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}" + +start() { + ebegin "Starting BumbleBee Daemon" + start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}" + eend $? +} + +stop() { + + ebegin "Stopping BumbleBee Daemon" + start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10 + eend $? +} -- cgit v1.2.3