X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by lists.alpinelinux.org (Postfix) with ESMTP id BA22B618EB4 for ; Tue, 18 Aug 2009 17:31:08 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1197726qwb.13 for ; Tue, 18 Aug 2009 10:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=826eSl/o+PU5zANH1l8lfug3QKC+EeKK/mOo1A/Bklk=; b=fJ0ZL68jdSHi8Y4UDqHBwln6SIrppOw/aiT7xna4JlsJAVsEo5oi7E4ZAqNb0ISnTb 81lDSFFh+7owwwwzyL6omAgcmLDeIXjPr/6PJZgV0tDYrEJLVA/nv1tYlCC/yKxDPU6X +zvr/33HgeEA5J5fudzTGhd73+taomU8VW0Gg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=swxqpWLlWQul2ehL8LzcaoZQ+U9W8qTW298z+yiTkqU04mPiYAFCEAs2T1dKXy48b2 bmx5oqTqovBuZTYzewKiJPLYRdzh/SrEpln2Qy55kXBi8HcZVLkRBi0V2RxWhFC71TJX 5FdqB4Iixz/cijut3kvEESx4s59SLurgQmXzw= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Sender: jeremythomerson@gmail.com Reply-To: jeremy@thomersonfamily.com Received: by 10.229.53.76 with SMTP id l12mr2709918qcg.105.1250616667283; Tue, 18 Aug 2009 10:31:07 -0700 (PDT) In-Reply-To: <1250584792.12341.5.camel@localhost.localdomain> References: <6602aeca0908172324s16b0e14bydfd41b2e0be606@mail.gmail.com> <1250584792.12341.5.camel@localhost.localdomain> Date: Tue, 18 Aug 2009 12:31:07 -0500 X-Google-Sender-Auth: ee83bccff7adc418 Message-ID: <6602aeca0908181031r6a1ba938r3e791e48bc0287a5@mail.gmail.com> Subject: Re: [alpine-devel] dhcpd won't start automatically From: Jeremy Thomerson To: Natanael Copa Cc: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=00151773e21a3420d604716de2c9 --00151773e21a3420d604716de2c9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Okay, perhaps this is a dumb question. I upgraded the package, but I can't figure out how to make that upgrade persist through a reboot. I must be doing it wrong. Here's what I'm doing: My /etc/apk/repositories has this in it: /media/sda1/apks http://dev.alpinelinux.org/alpine/v1.9/packages/main I ran these commands: apk update apk fix -u dhcp lbu commit sda1 reboot What'd I do wrong? Sorry for all the questions. Jeremy Thomerson On Tue, Aug 18, 2009 at 3:39 AM, Natanael Copa wrote: > On Tue, 2009-08-18 at 01:24 -0500, Jeremy Thomerson wrote: > > My new router is almost completely setup (shorewall, openvpn server, > > dns, etc). I have one problem, though. I've added dhcpd to the > > default runlevel, and it tries to start on a reboot, but it doesn't > > start automatically. If I sign in to the box and start the service > > manually, it starts fine. > > > > I think the problem has to do with ipv6 not being loaded BEFORE dhcpd > > tries to start. I've pasted the relevant part of /var/log/messages > > below. I've tried adding ipv6 to /etc/modules. After the box > > finishes booting, '/proc/net/if_inet6' exists, so I think that it may > > be just an order of operations problem. > > > > I also tried disabling ipv6 support in dhcpd by specifying "-4" in the > > config. However, I think the following bug may be causing this to > > fail: > > http://bugs.archlinux.org/task/12792 > > > > Any suggestions? > > I applied the patch found in the archlinux bug report. > > http://git.alpinelinux.org/cgit/aports/commit/?id=db5d9d6dcaa35ca33f48383464e0be66903f1bfa > > So you can try install dhcp-4.1.0_p1-r2 > > Other option, if you want make sure that modules initscript is run > before dhcpd, you can add a forced depednency in /etc/conf.d/dhcpd: > > rc_need="modules" > > However, I'd believe that networking should come after modules anyway so > please let me know if the above lines solves your problem. Then I'll > need to fix the init.d dependencies some place. > > Thanks! > > > -nc > > > --00151773e21a3420d604716de2c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Okay, perhaps this is a dumb question.=A0 I upgraded the package, but I can= 't figure out how to make that upgrade persist through a reboot.=A0 I m= ust be doing it wrong.=A0 Here's what I'm doing:

My /etc/apk= /repositories has this in it:
/media/sda1/apks
http://dev.alpinelinux.org/alpine/v1.9/packages/main

I= ran these commands:
apk update
apk fix -u dhcp
lbu commit sda1 reboot

What'd I do wrong?=A0 Sorry for all the questions.
Jeremy Thomerson

On Tue, Aug 18, 2009 at= 3:39 AM, Natanael Copa <natanael.copa@gmail.com> wrote:
On Tue, 2009-08-18 at 01:24 -0500, Jeremy Thomerson wrote:
> My new router is almost completely setup (shorewall, openvpn server, > dns, etc). =A0I have one problem, though. =A0I've added dhcpd to t= he
> default runlevel, and it tries to start on a reboot, but it doesn'= t
> start automatically. =A0If I sign in to the box and start the service<= br> > manually, it starts fine.
>
> I think the problem has to do with ipv6 not being loaded BEFORE dhcpd<= br> > tries to start. =A0I've pasted the relevant part of /var/log/messa= ges
> below. =A0I've tried adding ipv6 to /etc/modules. =A0After the box=
> finishes booting, '/proc/net/if_inet6' exists, so I think that= it may
> be just an order of operations problem.
>
> I also tried disabling ipv6 support in dhcpd by specifying "-4&qu= ot; in the
> config. =A0However, I think the following bug may be causing this to > fail:
> htt= p://bugs.archlinux.org/task/12792
>
> Any suggestions?

I applied the patch found in the archlinux bug report.
http://git.alpinelinux.org/= cgit/aports/commit/?id=3Ddb5d9d6dcaa35ca33f48383464e0be66903f1bfa

So you can try install dhcp-4.1.0_p1-r2

Other option, if you want make sure that modules initscript is run
before dhcpd, you can add a forced depednency in /etc/conf.d/dhcpd:

rc_need=3D"modules"

However, I'd believe that networking should come after modules anyway s= o
please let me know =A0if the above lines solves your problem. Then I'll=
need to fix the init.d dependencies some place.

Thanks!


-nc



--00151773e21a3420d604716de2c9-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---