avahi-dnsconfd.initd 457 B

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