summaryrefslogtreecommitdiff
path: root/x11-misc/bumblebee/files/bumblebee.initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-03-19 22:27:18 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-03-19 22:27:18 +0000
commitfca938a0731ad5c2c28de042aa753b976b506ee5 (patch)
treebd0d133f60f65d57b9bdb845ec8f736e4d33cb49 /x11-misc/bumblebee/files/bumblebee.initd
parent48205fa5a7c1eba35e6f5980db02aba73759de91 (diff)
import bumblebee from deprecated repo
Diffstat (limited to 'x11-misc/bumblebee/files/bumblebee.initd')
-rw-r--r--x11-misc/bumblebee/files/bumblebee.initd23
1 files changed, 23 insertions, 0 deletions
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 $?
+}