src/etc/S51mdnsgw

Thu, 14 Aug 2014 19:15:12 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 14 Aug 2014 19:15:12 +0200
changeset 10
f48fa3532729
permissions
-rwxr-xr-x

Improve logging date format and integrate transactions in database ops.

     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