rcrun: ppp-user patch

Peter Kadau peter.kadau at tuebingen.mpg.de
Mon Dec 15 11:06:00 PST 2003


Hi !

I know my last one wasn't that glorious *sigh*,
but this one works at least...
Cheers
Peter
--
<peter.kadau at xxxxxxxxxxxxxxxx>
Campus der Max-Planck-Institute Tübingen
Netzwerk- und Systemadministration
Tel: +49 7071 601 598
Fax: +49 7071 601 616
--- ppp-user.orig	Sat Dec 13 12:39:36 2003
+++ ppp-user	Mon Dec 15 19:58:39 2003
@@ -13,7 +13,7 @@
 name="ppp"
 rcvar="ppp_enable"
 start_cmd="ppp_start"
-stop_cmd=":"
+stop_cmd="ppp_stop"
 
 ppp_start()
 {
@@ -42,6 +42,18 @@
 
 	# Re-Sync ipfilter so it picks up any new network interfaces
 	#
+	/etc/rc.d/ipfilter resync
+}
+
+ppp_stop()
+{
+	pids=`check_process /usr/sbin/ppp`
+	if [ -n "${pids}" ]; then
+		for pid in ${pids}; do
+			kill ${pid}
+		done
+		wait_for_pids ${pids}
+	fi
 	/etc/rc.d/ipfilter resync
 }
 




More information about the Submit mailing list