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

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
parent 7
094f3fcbf690
child 9
3d4d0e0dd4de

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

src/etc/K51mdnsgw file | annotate | diff | comparison | revisions
src/etc/S51mdnsgw file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/etc/K51mdnsgw	Wed Aug 13 21:21:38 2014 +0200
     1.3 @@ -0,0 +1,31 @@
     1.4 +#! /bin/sh
     1.5 +
     1.6 +### BEGIN INIT INFO
     1.7 +# Provides:          mdnsgw
     1.8 +# Required-Start:
     1.9 +# Required-Stop:
    1.10 +# Should-Start:      $all
    1.11 +# Default-Start: 2 3 4 5
    1.12 +# Default-Stop: 0 1 6
    1.13 +# Short-Description: Zeroconf DNS gateway for IoT
    1.14 +# Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks
    1.15 +### END INIT INFO
    1.16 +
    1.17 +N=/etc/init.d/mdnsgw
    1.18 +
    1.19 +set -e
    1.20 +
    1.21 +case "$1" in
    1.22 +  start)
    1.23 +	mdnsgw
    1.24 +	;;
    1.25 +  stop|reload|restart|force-reload|status)
    1.26 +	pkill -TERM `cat mdnsgw.pid`
    1.27 +	;;
    1.28 +  *)
    1.29 +	echo "Usage: $N {start}" >&2
    1.30 +	exit 1
    1.31 +	;;
    1.32 +esac
    1.33 +
    1.34 +exit 0
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/etc/S51mdnsgw	Wed Aug 13 21:21:38 2014 +0200
     2.3 @@ -0,0 +1,31 @@
     2.4 +#! /bin/sh
     2.5 +
     2.6 +### BEGIN INIT INFO
     2.7 +# Provides:          mdnsgw
     2.8 +# Required-Start:
     2.9 +# Required-Stop:
    2.10 +# Should-Start:      $all
    2.11 +# Default-Start: 2 3 4 5
    2.12 +# Default-Stop: 0 1 6
    2.13 +# Short-Description: Zeroconf DNS gateway for IoT
    2.14 +# Description: mDNSGw is a zero configuration DNS gateway for systems communicating over mesh networks
    2.15 +### END INIT INFO
    2.16 +
    2.17 +N=/etc/init.d/mdnsgw
    2.18 +
    2.19 +set -e
    2.20 +
    2.21 +case "$1" in
    2.22 +  start)
    2.23 +	mdnsgw
    2.24 +	;;
    2.25 +  stop|reload|restart|force-reload|status)
    2.26 +	pkill -TERM `cat mdnsgw.pid`
    2.27 +	;;
    2.28 +  *)
    2.29 +	echo "Usage: $N {start}" >&2
    2.30 +	exit 1
    2.31 +	;;
    2.32 +esac
    2.33 +
    2.34 +exit 0

mercurial