Penguin
Diff: RedHatMetaNetScripts
EditPageHistoryDiffInfoLikePages

Differences between version 4 and predecessor to the previous major change of RedHatMetaNetScripts.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 4 Last edited on Sunday, February 13, 2005 3:51:45 pm by GerwinVanDeSteeg Revert
Older page: version 3 Last edited on Sunday, August 31, 2003 3:07:42 pm by CraigBox Revert
@@ -99,5 +99,100 @@
  *) 
  echo "Usage: $0 {start|stop|restart|force-reload}" >&2 
  ;; 
  
+ esac  
+  
+Or here's one by [GerwinVanDeSteeg] which seems to work for Fedora Core 3.  
+  
+/etc/sysconfig/wand  
+  
+ # Configuration for the wandd daemon for the MetaNet  
+ # http://www.wlug.org.nz/MetaNet  
+  
+ EPORT=22222  
+ WPORT=44444  
+ SERVER=<the name of the server specified in wand.conf goes here>  
+ WANIF=wan0  
+  
+/etc/init.d/wand  
+  
+ #! /bin/sh  
+ #  
+ # wand  
+ #  
+ # chkconfig: - 21 79  
+ # description: wand provides access to the MetaNet  
+ #  
+  
+ # Source function library.  
+ . /etc/init.d/functions  
+  
+ if [[ ! -f /etc/sysconfig/network ]; then  
+ exit 0  
+ fi  
+  
+ if [[ ! -f /etc/sysconfig/wand ]; then  
+ exit 0  
+ fi  
+  
+ . /etc/sysconfig/network  
+ . /etc/sysconfig/wand  
+  
+ ETUD=/usr/local/sbin/Etud  
+ ETUDCTL=/usr/local/sbin/Etudctl  
+ WAND=/usr/local/sbin/wand  
+  
+ start()  
+ {  
+ echo -n $"Starting Etud: "  
+ daemon $ETUD -l $EPORT -p /var/run/Etud.pid  
+ [[ "$?" -eq 0 ] && echo_success || echo_failure  
+ echo  
+ echo -n $"Bringing up interface $WANIF: "  
+ ifup $WANIF  
+ [[ "$?" -eq 0 ] && echo_success || echo_failure  
+ echo  
+ echo -n $"Starting wand: "  
+ daemon $WAND -i $SERVER -l $WPORT  
+ [[ "$?" -eq 0 ] && echo_success || echo_failure  
+ echo  
+ service zebra start  
+ service bgpd start  
+ }  
+  
+ stop()  
+ {  
+ service bgpd stop  
+ service zebra stop  
+ echo -n $"Shutting down wand: "  
+ killall wand  
+ [[ "$?" -eq 0 ] && echo_success || echo_failure  
+ echo  
+ echo -n $"Shutting down Etud: "  
+ killall Etud  
+ [[ "$?" -eq 0 ] && echo_success || echo_failure  
+ echo  
+ }  
+ case $1 in  
+ start)  
+ start  
+ ;;  
+ stop)  
+ stop  
+ ;;  
+ restart)  
+ stop  
+ start  
+ ;;  
+ status)  
+ service bgpd status  
+ service zebra status  
+ status $ETUD  
+ $ETUDCTL -l  
+ status $WANDD  
+ ip route | grep zebra  
+ ;;  
+ *)  
+ echo $"Usage: $prog {start|stop|restart|status}"  
+ exit 1  
  esac