Skip site navigation (1)Skip section navigation (2)
Date:      19 Nov 2005 10:15:13 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Pat Maddox <pergesu@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: 6.0, lighttpd not starting up on boot
Message-ID:  <44wtj4vfcu.fsf@be-well.ilk.org>
In-Reply-To: <810a540e0511190652j1f5c99f9y7b0ac99670327b86@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Pat Maddox <pergesu@gmail.com> writes:

> On 19 Nov 2005 09:49:15 -0500, Lowell Gilbert
> <freebsd-questions-local@be-well.ilk.org> wrote:
> > Pat Maddox <pergesu@gmail.com> writes:
> >
> > > On 19 Nov 2005 08:59:32 -0500, Lowell Gilbert
> > > <freebsd-questions-local@be-well.ilk.org> wrote:
> > > > Pat Maddox <pergesu@gmail.com> writes:
> > > >
> > > > > On 19 Nov 2005 08:39:19 -0500, Lowell Gilbert
> > > > > <freebsd-questions-local@be-well.ilk.org> wrote:
> > > > > > Pat Maddox <pergesu@gmail.com> 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.



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