Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2007 10:50:16 GMT
From:      Mike Makonnen <mtm@FreeBSD.Org>
To:        freebsd-rc@FreeBSD.org
Subject:   Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp
Message-ID:  <200703311050.l2VAoGJM007954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/104623; it has been noted by GNATS.

From: Mike Makonnen <mtm@FreeBSD.Org>
To: bug-followup@FreeBSD.org, freebsd-pr@cl.turing-complete.org
Cc:  
Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp
Date: Sat, 31 Mar 2007 13:49:59 +0300

 --IS0zKkzwUGydFO0o
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Can you try the attached patch?
 It allows you to specify the ppp instance to control by specifying
 the tunnel device name as an addtional argument:
  # /etc/rc.d/ppp restart tun0
 
 Cheers.
 -- 
 Mike Makonnen          | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
 mmakonnen_at_gmail.com | AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
 mtm_at_FreeBSD.Org     | FreeBSD - http://www.freebsd.org
 
 --IS0zKkzwUGydFO0o
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="ppp.diff"
 
 Index: etc/rc.d/ppp
 ===================================================================
 RCS file: /home/ncvs/src/etc/rc.d/ppp,v
 retrieving revision 1.13
 diff -u -r1.13 ppp
 --- etc/rc.d/ppp	31 Mar 2007 09:03:38 -0000	1.13
 +++ etc/rc.d/ppp	31 Mar 2007 09:25:27 -0000
 @@ -2,6 +2,8 @@
  #
  # $FreeBSD: src/etc/rc.d/ppp,v 1.13 2007/03/31 09:03:38 mtm Exp $
  #
 +# usage: /etc/rc.d/ppp <cmd> [tunX]
 +#
  
  # PROVIDE: ppp
  # REQUIRE: netif isdnd
 @@ -46,5 +48,13 @@
  	/etc/rc.d/pf resync
  }
  
 +# Allow the user to specify which ppp instance to control by
 +# specifing the tunnel device name on the command-line.
 +#
 +pppcmdline="$*"
 +if [ $# -gt 1 ]; then
 +	pidfile="/var/run/$2.pid"
 +fi
 +
  load_rc_config $name
 -run_rc_command "$1"
 +run_rc_command ${pppcmdline}
 
 --IS0zKkzwUGydFO0o--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703311050.l2VAoGJM007954>