#!/bin/sh
# Begin /etc/init.d/

#
# Include the functions declared in the /etc/init.d/functions file
#

source /etc/sysconfig/rc
source $rc_functions

case "$1" in
        start)
                echo "Starting portmapper"
                loadproc /usr/sbin/portmap
                ;;

        stop)
                echo "Stopping portmapper"
                killproc /usr/sbin/portmap
                ;;

        reload)
                echo "Reloading portmapper"
                reloadproc /usr/sbin/portmap
                ;;

        restart)
                $0 stop
                /usr/bin/sleep 1
                $0 start
                ;;

        status)
                statusproc /usr/sbin/portmap
                ;;

        *)
                echo "Usage: $0 {start|stop|reload|restart|status}"
                exit 1
        ;;

esac

# End /etc/init.d/
