#!/sbin/sh
#
# Nov 5, 1968 - Doug Hughes (copied from
# http://www.sun.com/blueprints/0201/Multipathing.pdf
#
# Start in.rdisc IP multipathing 

case "$1" in
'start')
        if [ -x /usr/bin/pgrep ]
        then
                /usr/bin/pgrep -x -u 0 in.rdisc > /dev/null 2>&1 || \
                        /usr/sbin/in.rdisc -f > /dev/msglog 2>&1
        else
                logger Cannot execute /usr/bin/pgrep, in.rdisc not started.
        fi
        ;;

'stop')
        /usr/bin/kill -x -u 0 in.rdisc
        ;;

*)
        echo "Usage: $0 { start | stop }"
        ;;

esac
exit 0