1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/etc/K51mdnsgw Wed Aug 13 21:21:38 2014 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +#! /bin/sh 1.5 + 1.6 +### BEGIN INIT INFO 1.7 +# Provides: mdnsgw 1.8 +# Required-Start: 1.9 +# Required-Stop: 1.10 +# Should-Start: $all 1.11 +# Default-Start: 2 3 4 5 1.12 +# Default-Stop: 0 1 6 1.13 +# Short-Description: Zeroconf DNS gateway for IoT 1.14 +# Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks 1.15 +### END INIT INFO 1.16 + 1.17 +N=/etc/init.d/mdnsgw 1.18 + 1.19 +set -e 1.20 + 1.21 +case "$1" in 1.22 + start) 1.23 + mdnsgw 1.24 + ;; 1.25 + stop|reload|restart|force-reload|status) 1.26 + pkill -TERM `cat mdnsgw.pid` 1.27 + ;; 1.28 + *) 1.29 + echo "Usage: $N {start}" >&2 1.30 + exit 1 1.31 + ;; 1.32 +esac 1.33 + 1.34 +exit 0