From owner-freebsd-questions@FreeBSD.ORG Sat Nov 19 15:15:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFB3816A420 for ; Sat, 19 Nov 2005 15:15:33 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0463043D60 for ; Sat, 19 Nov 2005 15:15:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 26974 invoked from network); 19 Nov 2005 15:15:13 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Nov 2005 15:15:13 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 2CECD28444; Sat, 19 Nov 2005 10:15:13 -0500 (EST) Sender: lowell@be-well.ilk.org To: Pat Maddox References: <810a540e0511180107g35b21bd2nd67074734789376d@mail.gmail.com> <44zmo0ycxk.fsf@be-well.ilk.org> <810a540e0511190544m3988d1cq923539c8c85aa108@mail.gmail.com> <44r79cwxff.fsf@be-well.ilk.org> <810a540e0511190612t6dba8193k5bc48962324092c@mail.gmail.com> <44ek5cwv4k.fsf@be-well.ilk.org> <810a540e0511190652j1f5c99f9y7b0ac99670327b86@mail.gmail.com> From: Lowell Gilbert Date: 19 Nov 2005 10:15:13 -0500 In-Reply-To: <810a540e0511190652j1f5c99f9y7b0ac99670327b86@mail.gmail.com> Message-ID: <44wtj4vfcu.fsf@be-well.ilk.org> Lines: 46 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Questions Subject: Re: 6.0, lighttpd not starting up on boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 15:15:34 -0000 Pat Maddox writes: > On 19 Nov 2005 09:49:15 -0500, Lowell Gilbert > wrote: > > Pat Maddox writes: > > > > > On 19 Nov 2005 08:59:32 -0500, Lowell Gilbert > > > wrote: > > > > Pat Maddox writes: > > > > > > > > > On 19 Nov 2005 08:39:19 -0500, Lowell Gilbert > > > > > wrote: > > > > > > Pat Maddox writes: > > > > > > > > > > > > > I've got a 6.0 system with lighttpd installed. I have a > > > > > > > lighttpd_enable="YES" line in /etc/rc.conf, but lighttpd doesn't start > > > > > > > up when the machine boots. I have another machine with the same > > > > > > > config (though apparently not exactly the same), and lighttpd starts > > > > > > > up with it. There's nothing in the lighttpd error log, and if I use > > > > > > > the rc script to start it up it starts fine. How do I find out why > > > > > > > it's not starting on boot, and how do I make it start on boot? > > > > > > > > > > > > Is it executable? > > > > > > > > > > > > Try putting an echo or touch command early in the script to see if > > > > > > it's getting run at boot at all. > > > > > > > > > > > It's definitely executable..it's getting run when I run > > > > > /etc/rc.d/localpkgs, so it really just makes no sense. > > > > > > > > Well, try my suggestion anyway. > > > > > > Alright, I put a touch in the rc script, and it touched the file. > > > > Okay, good. Seriously puzzling, but eliminates a lot of things. > > Does it start if you call the script with a completely clean > > environment? [*Something* is different between calling it from the > > command line and having the rc scripts do it.] > > > > I'm really not sure what you mean by a clean environment. I can use > the rc script to start it, but that's after the machine boots up. > lighttpd doesn't want to start during bootup. I can also start it > fine by calling the lighttpd binary. env(1) is the easy way to do it.