X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-qy0-f186.google.com (mail-qy0-f186.google.com [209.85.221.186]) by lists.alpinelinux.org (Postfix) with ESMTP id A0C5D618EB4 for ; Tue, 18 Aug 2009 17:36:11 +0000 (UTC) Received: by qyk16 with SMTP id 16so3651676qyk.27 for ; Tue, 18 Aug 2009 10:36:10 -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=V9E5OdZyXMNiA3O3pH+EZjL0XPNq11KWpWonBlrFW1w=; b=BfDtP4tgiRxZd/MI/YoRufzNYiZ7TdghVMl28pdbqCF5b8zfh2eWOspeF85NIFC1D9 tY8qCPPzx/HPlWGNURraZCKFP7ZFJZNhr6XMgMGKGHfgfOVFo/SekMtbO5CZgyVVr1lR lk8MrakkA+gIX9yWrFNtgxgqDEGqF2huMslLg= 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=oVYHY5RwpmewiaHvI3lX0g0NLZuR/jI0+RiFnukrnGsYEa/0ydwG4A2km9buPh5Br9 jOr5U/PDNKNkQm6dV57hCXCtBiDfTNHuuAoPpRRyprfwWOukxaZ8ETyB9GUjBWm79gxx ELpCzNt4cwhmfWIgSouKKR6xg8AgYLAUHUKmA= 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.118.6 with SMTP id t6mr2659297qcq.39.1250616970372; Tue, 18 Aug 2009 10:36:10 -0700 (PDT) In-Reply-To: <6602aeca0908181031r6a1ba938r3e791e48bc0287a5@mail.gmail.com> References: <6602aeca0908172324s16b0e14bydfd41b2e0be606@mail.gmail.com> <1250584792.12341.5.camel@localhost.localdomain> <6602aeca0908181031r6a1ba938r3e791e48bc0287a5@mail.gmail.com> Date: Tue, 18 Aug 2009 12:36:10 -0500 X-Google-Sender-Auth: 2752bea16a9136e3 Message-ID: <6602aeca0908181036y3de8e30at581bec2ba00207d5@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=000e0cd5c6ca44e84f04716df475 --000e0cd5c6ca44e84f04716df475 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Well, it did work (with the old dhcpd version) by adding the rc_need="modules". If I reboot and do an rc-status, it shows dhcpd as "crashed", but in actuality, it is running. At least it's automatically starting with a reboot. This line in the logs may be why it thinks that it crashed: local7.err dhcpd: Can't create PID file /var/run/dhcp/dhcpd.pid: Permission denied. Here's what I did: echo "rc_need=\"modules\"" >> /etc/conf.d/dhcpd rc-update add modules lbu commit sda1 reboot Thank you very much! Jeremy Thomerson On Tue, Aug 18, 2009 at 12:31 PM, Jeremy Thomerson < jeremy@thomersonfamily.com> wrote: > 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 >> >> >> > --000e0cd5c6ca44e84f04716df475 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, it did work (with the old dhcpd version) by adding the rc_need=3D&quo= t;modules".=A0 If I reboot and do an rc-status, it shows dhcpd as &quo= t;crashed", but in actuality, it is running.=A0 At least it's auto= matically starting with a reboot.=A0 This line in the logs may be why it th= inks that it crashed:

local7.err dhcpd: Can't create PID file /var/run/dhcp/dhcpd.pid: Pe= rmission denied.

Here's what I did:

echo "rc_need=3D= \"modules\"" >> /etc/conf.d/dhcpd
rc-update add mod= ules
lbu commit sda1
reboot

Thank you very much!
Jeremy Thomerson
On Tue, Aug 18, 2009 at 12:31 PM, Jeremy T= homerson <jeremy@thomersonfamily.com> wrote:
Okay, perhaps thi= s 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 must be doing it w= rong.=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




--000e0cd5c6ca44e84f04716df475-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---