From marck@woozle.rinet.ru  Wed Aug 22 08:58:42 2001
Return-Path: <marck@woozle.rinet.ru>
Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68])
	by hub.freebsd.org (Postfix) with ESMTP id F18B837B42C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Aug 2001 08:58:40 -0700 (PDT)
	(envelope-from marck@woozle.rinet.ru)
Received: (from marck@localhost)
	by woozle.rinet.ru (8.11.3/8.11.3) id f7MFwZ917329;
	Wed, 22 Aug 2001 19:58:35 +0400 (MSD)
	(envelope-from marck)
Message-Id: <200108221558.f7MFwZ917329@woozle.rinet.ru>
Date: Wed, 22 Aug 2001 19:58:35 +0400 (MSD)
From: Dmitry Morozovsky <marck@woozle.rinet.ru>
Reply-To: marck@rinet.ru, yar@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: enabling ppp in rc.conf breaks rc.network execution
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29957
>Category:       bin
>Synopsis:       enabling ppp in rc.conf breaks rc.network execution
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 22 09:00:32 PDT 2001
>Closed-Date:    Wed Aug 22 23:47:48 PDT 2001
>Last-Modified:  Thu Aug 23 04:40:01 PDT 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: yar 
State-Changed-When: Wed Aug 22 23:47:48 PDT 2001 
State-Changed-Why:  
The originator admitted in a private mail that 
the problem couldn't be reproduced and seemed 
to have nothing to do with the "exec". 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29957 

From: Yar Tikhiy <yar@freebsd.org>
To: marck@rinet.ru
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/29957: enabling ppp in rc.conf breaks rc.network execution
Date: Wed, 22 Aug 2001 21:41:47 +0400

 I cannot reproduce the problem. The "exec" is issued from within
 the "su" context and can in no way interfere with rc.network
 execution.
>Unformatted:
