File rcnetplan of Package plan

#!/bin/sh
#
# Starts (and stops) the net plan server
#
# Edit paths as needed, espessially if you have customized the installation
# locations.
#
# modified to visually fit into SuSE Linux by Klaas Freitag <freitag@suse.de>
#
### BEGIN INIT INFO
# Provides: netplan
# Required-Start: $remote_fs 
# Should-Start: $named $syslog
# Required-Stop: $remote_fs
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description: Netplan Server
### END INIT INFO

. /etc/rc.status

NETPLAN_BIN=/usr/sbin/netplan
test -x $NETPLAN_BIN || exit 5

rc_reset
case "$1" in
	start)
		echo -n "Starting Netplan Server"
                startproc $NETPLAN_BIN

		rc_status -v
                ;;

	stop)
		# Stop netplan server.
		echo -n "Shutting down Netplan Server"
		killproc -TERM $NETPLAN_BIN 		
		rc_status -v
		;;

        try-restart|force-reload)
        	$0 stop  &&  $0 start

        	rc_status
        	;;
        restart)
        	$0 stop
		$0 start
        	rc_status
        	;;
        reload)
	        rc_failed 3
		rc_status -v
        	;;
        status)
        	echo -n "Checking for Netplan Server: "
		checkproc $NETPLAN_BIN
		rc_status -v
        	;;
        probe)
	        ;;
	*)
		echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
                exit 1
esac
rc_exit