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