S50avahi-daemon 285 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # avahi-daemon init script
  4. DAEMON=/usr/sbin/avahi-daemon
  5. case "$1" in
  6. start)
  7. $DAEMON -c || $DAEMON -D
  8. ;;
  9. stop)
  10. $DAEMON -c && $DAEMON -k
  11. ;;
  12. reload)
  13. $DAEMON -c && $DAEMON -r
  14. ;;
  15. *)
  16. echo "Usage: S50avahi-daemon {start|stop|reload}" >&2
  17. exit 1
  18. ;;
  19. esac