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.

     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

mercurial