You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/bumblebee/files/bumblebee.initd

24 lines
492 B

#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 $?
}