|
1 #! /bin/sh |
|
2 |
|
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 |
|
13 |
|
14 N=/etc/init.d/mdnsgw |
|
15 |
|
16 set -e |
|
17 |
|
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 |
|
30 |
|
31 exit 0 |