bbstored.rc 413 B

123456789101112131415161718192021
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. depend() {
  5. need localmount
  6. use net
  7. }
  8. start() {
  9. ebegin "Starting box backup store daemon"
  10. start-stop-daemon --start --exec /usr/sbin/bbstored > /dev/null
  11. eend $?
  12. }
  13. stop() {
  14. ebegin "Stopping box backup store daemon"
  15. start-stop-daemon --stop --exec /usr/sbin/bbstored
  16. eend $?
  17. }