[Bug 30646] ipxripd should run in passive mode by default

Gde Bagus Aryana gde6195 at yahoo.com
Sun Jun 25 04:30:05 UTC 2006


Public bug reported:

ipxripd should run in passive mode by default, to prevent network
disruption, because most of people run ipxripd just to get ipx routing
info.


--- ipxripd.init	2006-02-06 21:36:50.000000000 +0700
+++ ipxripd.baru	2005-10-05 09:15:54.000000000 +0700
@@ -13,6 +13,7 @@
 
 # Set run_ipxripd to 1 to start ipxripd at boot time, or to 0 to disable it.
 run_ipxripd=1
+ipx_router=no
 
 if [ $run_ipxripd = 0 ]; then
 	echo "IPX RIP/SAP daemon is disabled. Edit /etc/init.d/ipxripd to enable"
@@ -22,7 +23,12 @@
 case "$1" in
 	start)
 		echo -n "Starting the IPX RIP/SAP daemon: ipxd"
-		start-stop-daemon --start --exec $DAEMON
+		sleep 10
+		if [ "$ipx_router" = "yes" ]; then
+		    start-stop-daemon --start --exec $DAEMON
+		else
+		    start-stop-daemon --start --exec $DAEMON -- -p
+		fi
 		echo "."
 		;;
 	stop)
@@ -31,10 +37,9 @@
 		echo "."
 		;;
 	restart|force-reload)
-		echo -n "Restarting the IPX RIP/SAP daemon..."
-		start-stop-daemon --stop --exec $DAEMON
+		$0 stop || true
 		sleep 2
-		start-stop-daemon --start --exec $DAEMON
+		$0 start
 		echo " done."
 		;;
 	*)

** Affects: ipxripd (Ubuntu)
     Importance: Medium
     Assignee: MOTU
         Status: Unconfirmed
** Affects: ipxripd (Debian)
     Importance: Unknown
         Status: Unknown

-- 
ipxripd should run in passive mode by default
https://launchpad.net/bugs/30646




More information about the universe-bugs mailing list