logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

bitlbee.initd-r1 (675B)


  1. #!/sbin/openrc-run
  2. # Copyright 1999-2014 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License, v2 or
  4. # later
  5. DAEMON=/usr/sbin/bitlbee
  6. PIDFILE=/var/run/bitlbee/bitlbee.pid
  7. depend() {
  8. need logger net
  9. }
  10. start () {
  11. ebegin "Starting bitlbee"
  12. checkpath -d -m 0755 -o bitlbee:bitlbee $(dirname ${PIDFILE})
  13. start-stop-daemon --start --quiet \
  14. -u bitlbee:bitlbee --exec ${DAEMON} --pidfile ${PIDFILE} \
  15. -- -P ${PIDFILE} ${BITLBEE_OPTS}
  16. eend $?
  17. }
  18. stop() {
  19. ebegin "Stopping bitlbee"
  20. local pidfile=
  21. yesno ${BITLBEE_STOP_ALL:-YES} ||
  22. pidfile="--pidfile ${PIDFILE}"
  23. start-stop-daemon --stop --quiet ${pidfile} -u bitlbee:bitlbee
  24. eend $?
  25. }