Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 19:58:35 +0400 (MSD)
From:      Dmitry Morozovsky <marck@woozle.rinet.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/29957: enabling ppp in rc.conf breaks rc.network execution
Message-ID:  <200108221558.f7MFwZ917329@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help

>Number:         29957
>Category:       bin
>Synopsis:       enabling ppp in rc.conf breaks rc.network execution
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 09:00:32 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4.3-STABLE i386 / FreeBSD-current
>Organization:
Cronyx Plus LLC
>Environment:

Various

>Description:

	 Enabling ppp in /etc/rc.conf leads to "exec ppp" at
/etc/rc.network, whick breaks following network daemons, such as named
ntpd, and ipfw rules also.

>How-To-Repeat:

f.e, add

ppp_enable="yes"
named_enable="yes"

to /etc/rc.conf

After reboot, named (and other daemons in rc.conf after ppp start)
will not start.

>Fix:

For -current (for 4-stable the same except for line numbers):

Index: rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.102
diff -u -r1.102 rc.network
--- rc.network	2001/07/30 23:12:02	1.102
+++ rc.network	2001/08/22 15:47:54
@@ -249,7 +249,7 @@
 		ppp_command="${ppp_command} ${ppp_profile}"
 
 		echo "Starting ppp as \"${ppp_user}\""
-		su -m ${ppp_user} -c "exec ${ppp_command}"
+		su -m ${ppp_user} -c "${ppp_command}"
 		;;
 	esac
 
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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