From owner-freebsd-questions@FreeBSD.ORG Sat Dec 23 22:44:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80AFC16A40F for ; Sat, 23 Dec 2006 22:44:28 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by mx1.freebsd.org (Postfix) with ESMTP id 4143A13C466 for ; Sat, 23 Dec 2006 22:44:28 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by elasmtp-spurfowl.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1GyFbP-0004DC-Es for freebsd-questions@freebsd.org; Sat, 23 Dec 2006 17:44:27 -0500 Received: from joeandlane.com (localhost.localnet.local [127.0.0.1]) by joeandlane.com (8.13.8/8.13.1) with ESMTP id kBNMl922010758 for ; Sat, 23 Dec 2006 16:47:09 -0600 (CST) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.8/8.13.1/Submit) id kBNMl8SS010757 for freebsd-questions@freebsd.org; Sat, 23 Dec 2006 16:47:08 -0600 (CST) (envelope-from lane@joeandlane.com) X-Authentication-Warning: joeandlane.com: lholcombe set sender to lane@joeandlane.com using -f From: Lane To: freebsd-questions@freebsd.org Date: Sat, 23 Dec 2006 16:47:08 -0600 User-Agent: KMail/1.9.4 References: <200612231156.05280.beech@alaskaparadise.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200612231647.08447.lane@joeandlane.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec79d80f3029f45a9841e2febb9e8ffc900f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Subject: Re: not everything coming up on a reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Dec 2006 22:44:28 -0000 On Saturday 23 December 2006 15:36, Michael P. Soulier wrote: > On 12/23/06, Beech Rintoul wrote: > > Do you have ppp-user_enable="yes" in your /etc/rc.conf? > > No, and looking at ppp-user, I don't see why I'd need one. I have > ppp_enable="YES". > > > # PROVIDE: ppp-user > # REQUIRE: netif isdnd > # KEYWORD: nojail > > . /etc/rc.subr > > name="ppp" > rcvar="ppp_enable" > start_cmd="ppp_start" > stop_cmd=":" > > Now, I do notice that the stock script comes with a REQUIRE isdnd as > well as netif. As I'm not running isdn, would that stop rc from > bringing the script up, or are REQUIREs OR'd and not AND'd? > > Mike > -- Mike, I'm not so much familiar with rcorder and how it works, so I might be out of my depth ... but here goes ... It appeas that /etc/rc uses "-s nostart" when it arranges scripts in /etc/rc.d for startup (using rcorder). If you are running in a jail it will also use "-s nojail" Clearly if you are running ppp in a jail you don't get to start via rc It does not appear that rcorder is invoked when you run the script from the command line ... thus it will start when you invoke it manually as long as /etc/rc.conf agrees. Do this: rcorder -s nostart /etc/rc.d/* Does ppp show up? If not then there is the problem. As to WHY .. well you'd have to ask the developer. But If I was trouble-shooting to get it to work until the developer of rcorder got back with me, I this I'd do it this way: 1) copy /etc/rc.d/ppp-user to /usr/local/etc/rc.d/ppp-user (so I can monkey with it without messing things up. 2) change ppp_enable="YES" to ppp_enable="NO" in /etc/rc.conf 3) make up a new variable (e.g. mikes_ppp_enable) and put it in /etc/rc.conf in place of ppp_enable. Of course, set it to mikes_ppp_enable="YES" 4) alter the new /usr/local/etc/rc.d/ppp-user to make it use mikes_ppp_enable 5) reboot If ppp does not start then ... edit /usr/local/etc/rc.d/ppp-user to REMOVE the # REQUIRE line reboot again If ppp STILL does not start ... well ... i don't like my solutions, but ... I'd delete all of the rcorder information from my script and hang on until the developer (or someone else) could help me straighten it out. lane