#! /bin/sh
# Copyright (c) 1995-2001 SuSE, Germany.
#
# Author: Matthias Eckermann
#
### BEGIN INIT INFO
# Provides:       ippl
# Required-Start: $network
# Required-Stop:  
# Default-Start:  2 3 5
# Default-Stop:   
# Description:    IPPL protocols logger
### END INIT INFO

. /etc/rc.status

# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
    start)
        echo -n "Starting ippl protocols logger"
        startproc /usr/sbin/ippl || return=$rc_failed
        echo -e "$return"
        ;;
    stop)
        echo -n "Shutting down ippl protocols logger"
        killproc -TERM /usr/sbin/ippl || return=$rc_failed
        echo -e "$return"
        ;;
    status)
        checkproc /usr/sbin/ippl
        rc_status -v
	;;
    restart|reload|force-reload)
        $0 stop  &&  $0 start  ||  return=$rc_failed
        ;;
    *)
        echo "Usage: $0 {start|stop|status|restart}"
        exit 1
        ;;
esac

# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0

