spacepaste

  1.  
  2. #!/sbin/openrc-run
  3. # Copyright 1999-2016 Gentoo Foundation
  4. # Distributed under the terms of the GNU General Public License v2
  5. # $Header: $
  6. depend() {
  7. need localmount
  8. }
  9. PIDFILE="${PIDFILE:-/var/run/bumblebee.pid}"
  10. start() {
  11. ebegin "Starting BumbleBee Daemon"
  12. start-stop-daemon -S -p "${PIDFILE}" -x /usr/sbin/bumblebeed -- -D ${BUMBLEBEE_EXTRA_OPTS} --pidfile "${PIDFILE}"
  13. eend $?
  14. }
  15. stop() {
  16. ebegin "Stopping BumbleBee Daemon"
  17. start-stop-daemon -K -p "${PIDFILE}" -R SIGTERM/10
  18. eend $?
  19. }
  20.