Add a service script, for compatibility. - svc - Simple service scripts and examples, to be used everywhere.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 7c865a28dae67b9f0c749caeac158c14e3623502
 (DIR) parent 71ca23891a9ba5d0c7d5382763bf83357c3d7ee7
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sun, 11 May 2014 09:27:18 +0200
       
       Add a service script, for compatibility.
       
       This could be linked to rc-service(1).
       
       Diffstat:
         bin/service                         |      29 +++++++++++++++++++++++++++++
       
       1 file changed, 29 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/bin/service b/bin/service
       @@ -0,0 +1,29 @@
       +#!/bin/sh
       +
       +if [ $# -lt 2 ];
       +tthen
       +        printf "usage: %s [start|stop|restart] service\n" "$(basename "$0")" \
       +                >&2
       +        exit 1
       +fi
       +
       +cmd="$1"
       +service="$2"
       +
       +case "$cmd" in
       +sta*)
       +        svc -s "$service"
       +        ;;
       +sto*)
       +        svc -k "$service"
       +        ;;
       +r*)
       +        svc -r "$service"
       +        ;;
       +*)
       +        printf "usage: %s [start|stop|restart] service\n" "$(basename "$0")" \
       +                >&2
       +        exit 1
       +        ;;
       +esac
       +