avahi-dnsconfd.initd 529 B

12345678910111213141516171819202122232425262728293031
  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. supervisor="supervise-daemon"
  6. command="/usr/bin/avahi-dnsconfd"
  7. depend() {
  8. need avahi-daemon
  9. use net
  10. }
  11. # start() {
  12. # ebegin "Starting avahi-dnsconfd"
  13. # /usr/bin/avahi-dnsconfd -D
  14. # eend $?
  15. # }
  16. #
  17. # stop() {
  18. # ebegin "Stopping avahi-dnsconfd"
  19. # /usr/bin/avahi-dnsconfd -k
  20. # eend $?
  21. # }
  22. reload() {
  23. ebegin "Reloading avahi-dnsconfd"
  24. ${command} -r
  25. eend $?
  26. }