michael@8: #! /bin/sh michael@8: michael@8: ### BEGIN INIT INFO michael@8: # Provides: mdnsgw michael@8: # Required-Start: michael@8: # Required-Stop: michael@8: # Should-Start: $all michael@8: # Default-Start: 2 3 4 5 michael@8: # Default-Stop: 0 1 6 michael@8: # Short-Description: Zeroconf DNS gateway for IoT michael@8: # Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks michael@8: ### END INIT INFO michael@8: michael@8: N=/etc/init.d/mdnsgw michael@8: michael@8: set -e michael@8: michael@8: case "$1" in michael@8: start) michael@8: mdnsgw michael@8: ;; michael@8: stop|reload|restart|force-reload|status) michael@8: pkill -TERM `cat mdnsgw.pid` michael@8: ;; michael@8: *) michael@8: echo "Usage: $N {start}" >&2 michael@8: exit 1 michael@8: ;; michael@8: esac michael@8: michael@8: exit 0