#!/bin/sh
### BEGIN INIT INFO
# Provides:          schukodaemon
# Required-Start:    $syslog $network
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: schukodaemon
# Description:       schukodaemon fuer die Mini-Schulkonsole
### END INIT INFO
# Author: <M.Resch>


# Aktionen
case "$1" in
    start)
        echo "maussk: Start schukodaemon ..."
        /usr/sbin/schukodaemon -r &
        ;;
    stop)
        echo "maussk: Stop schukodaemon ..."
        killall -9 schukodaemon
        ;;
    restart)
        echo "maussk: Stop schukodaemon ..."
        killall -9 schukodaemon
        sleep 2
        echo "maussk: Start schukodaemon ..."
        /usr/sbin/schukodaemon -r &
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}" >&2
        exit 3
        ;;
esac

exit 0
