src/etc/K51mdnsgw

Wed, 13 Aug 2014 21:21:38 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 13 Aug 2014 21:21:38 +0200
changeset 8
27ccf35bbae7
permissions
-rwxr-xr-x

Include early stage untested SYS5 init.d(7) script drafts.

michael@8 1 #! /bin/sh
michael@8 2
michael@8 3 ### BEGIN INIT INFO
michael@8 4 # Provides: mdnsgw
michael@8 5 # Required-Start:
michael@8 6 # Required-Stop:
michael@8 7 # Should-Start: $all
michael@8 8 # Default-Start: 2 3 4 5
michael@8 9 # Default-Stop: 0 1 6
michael@8 10 # Short-Description: Zeroconf DNS gateway for IoT
michael@8 11 # Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks
michael@8 12 ### END INIT INFO
michael@8 13
michael@8 14 N=/etc/init.d/mdnsgw
michael@8 15
michael@8 16 set -e
michael@8 17
michael@8 18 case "$1" in
michael@8 19 start)
michael@8 20 mdnsgw
michael@8 21 ;;
michael@8 22 stop|reload|restart|force-reload|status)
michael@8 23 pkill -TERM `cat mdnsgw.pid`
michael@8 24 ;;
michael@8 25 *)
michael@8 26 echo "Usage: $N {start}" >&2
michael@8 27 exit 1
michael@8 28 ;;
michael@8 29 esac
michael@8 30
michael@8 31 exit 0

mercurial