# HG changeset patch # User Michael Schloh von Bennewitz # Date 1407957698 -7200 # Node ID 27ccf35bbae7887853c4b3991812f40743794517 # Parent 094f3fcbf69011f3dbd6d4dccde08ca1e9473124 Include early stage untested SYS5 init.d(7) script drafts. diff -r 094f3fcbf690 -r 27ccf35bbae7 src/etc/K51mdnsgw --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/etc/K51mdnsgw Wed Aug 13 21:21:38 2014 +0200 @@ -0,0 +1,31 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mdnsgw +# Required-Start: +# Required-Stop: +# Should-Start: $all +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Zeroconf DNS gateway for IoT +# Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks +### END INIT INFO + +N=/etc/init.d/mdnsgw + +set -e + +case "$1" in + start) + mdnsgw + ;; + stop|reload|restart|force-reload|status) + pkill -TERM `cat mdnsgw.pid` + ;; + *) + echo "Usage: $N {start}" >&2 + exit 1 + ;; +esac + +exit 0 diff -r 094f3fcbf690 -r 27ccf35bbae7 src/etc/S51mdnsgw --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/etc/S51mdnsgw Wed Aug 13 21:21:38 2014 +0200 @@ -0,0 +1,31 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: mdnsgw +# Required-Start: +# Required-Stop: +# Should-Start: $all +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Zeroconf DNS gateway for IoT +# Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks +### END INIT INFO + +N=/etc/init.d/mdnsgw + +set -e + +case "$1" in + start) + mdnsgw + ;; + stop|reload|restart|force-reload|status) + pkill -TERM `cat mdnsgw.pid` + ;; + *) + echo "Usage: $N {start}" >&2 + exit 1 + ;; +esac + +exit 0