avahi-daemon.initd 536 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2007 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. extra_started_commands="reload"
  5. command="/usr/sbin/avahi-daemon"
  6. supervisor="supervise-daemon"
  7. depend() {
  8. before netmount nfsmount
  9. use net
  10. need dbus
  11. }
  12. # start() {
  13. # ebegin "Starting avahi-daemon"
  14. # /usr/bin/avahi-daemon -D
  15. # eend $?
  16. # }
  17. #
  18. # stop() {
  19. # ebegin "Stopping avahi-daemon"
  20. # /usr/bin/avahi-daemon -k
  21. # eend $?
  22. # }
  23. reload() {
  24. ebegin "Reloading avahi-daemon"
  25. ${command} -r
  26. eend $?
  27. }