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 C3E10618EB4 for ; Tue, 18 Aug 2009 18:33:25 +0000 (UTC) Received: by qyk16 with SMTP id 16so3690934qyk.27 for ; Tue, 18 Aug 2009 11:33:25 -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=vRNp3zoMda+tReS/3GQWnN3JIzgVRZqJqbS7vH2rGOk=; b=Aq6vTdK44haEoVQjBMr29MY7KyMvY+McA3tR95nH0LFwtVvt59nxAZnqfMXjcbDWkG fWRjSfv1X8FyCFd5dD1vP0v2lfKo72P4zezu54MeiaA/dtRAxy8TmWv6a06nw8R9F//C HSaL7EDlcRAy776IlTEt/DdTBtPXTcv3ZA0us= 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=Xod0Zn3ET0E7o81+cPu+p0hmhl6Ny+epT8H6NCX3ndHbyEwqrM2QDQkI9E8pPED0uA dhqdSmm7izCEGHFcszzUvR3u3UAkSbnL/omOe/XvJB9zlhZjcAxAn3AL1xg9aSOx+hLJ 0Hc3hOSxlByei/RPV5Ei7cL8SQhfKe6QYjGHM= 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.27.19 with SMTP id g19mr2563810qcc.11.1250620404999; Tue, 18 Aug 2009 11:33:24 -0700 (PDT) In-Reply-To: <1250618381.28903.3.camel@localhost.localdomain> References: <6602aeca0908172324s16b0e14bydfd41b2e0be606@mail.gmail.com> <1250584792.12341.5.camel@localhost.localdomain> <6602aeca0908181031r6a1ba938r3e791e48bc0287a5@mail.gmail.com> <1250618381.28903.3.camel@localhost.localdomain> Date: Tue, 18 Aug 2009 13:33:24 -0500 X-Google-Sender-Auth: e1832fc2af30a418 Message-ID: <6602aeca0908181133j30f24b62yce38098662ee47d9@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=00163646d444fd2fd504716ec05a --00163646d444fd2fd504716ec05a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit It seems that your patch worked. I removed modules from the default run level and removed rc_needs="modules", commited, and rebooted, and using the updated dhcpd that you created, it stayed running. rc-status still shows it as crashed, and I think it's from this line in the logs: local7.err dhcpd: Can't create PID file /var/run/dhcp/dhcpd.pid: Permission denied > having packages downloaded from network to persist after a reboot is a > very new feature. (last week). I have nto tried it myself but i *think* > that it might be enough to: > > ln -s /media/sda1/apks /etc/apk/cache > > I'm interested in if it works. > Persisting after a reboot seems to have worked after adding the link and using apk add rather than fix. See this output from just after doing your commands, committing, and a reboot: thomerson-rt01:~# ls -alh /etc/apk/cache/ | grep dhcp -rwxr-xr-x 1 root root 8.1K Aug 10 08:50 acf-dhcp-0.4.0-r0.apk -rwxr-xr-x 1 root root 630.1K Aug 10 08:50 dhcp-4.1.0_p1-r1.apk -rwxr-xr-x 1 root root 657.2K Aug 18 18:11 dhcp-4.1.0_p1-r2.239754d2.apk -rwxr-xr-x 1 root root 96.0K Aug 10 08:50 dhcp-doc-4.1.0_p1-r1.apk -rwxr-xr-x 1 root root 43.6K Aug 10 08:50 dhcpcd-5.0.6-r0.apk -rwxr-xr-x 1 root root 9.6K Aug 10 08:50 dhcpcd-doc-5.0.6-r0.apk thomerson-rt01:~# dhcpd --version isc-dhcpd-4.1.0p1 Perhaps that is expected? Maybe the version string didn't change with your patch? thomerson-rt01:~# apk update fetch http://dev.alpinelinux.org/alpine/v1.9/packages/main/APKINDEX.tar.gz thomerson-rt01:~# apk add -u dhcp OK: 46 packages, 186 dirs, 3513 files Thanks for all the help! Jeremy Thomerson --00163646d444fd2fd504716ec05a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It seems that your patch worked.=A0 I removed modules from the default run = level and removed rc_needs=3D"modules", commited, and rebooted, a= nd using the updated dhcpd that you created, it stayed running.=A0

= rc-status still shows it as crashed, and I think it's from this line in= the logs:
local7.err dhcpd: Can't create PID file /var/run/dhcp/dhcpd.pid: Permis= sion denied


having packages downloaded from network to persist after a reboot is = a
very new feature. (last week). I have nto tried it myself but i *think*
that it might be enough to:

ln -s /media/sda1/apks /etc/apk/cache

I'm interested in if it works.

Persisting after a reb= oot seems to have worked after adding the link and using apk add rather tha= n fix.=A0 See this output from just after doing your commands, committing, = and a reboot:

thomerson-rt01:~# ls -alh /etc/apk/cache/ | grep dhcp
-rwxr-xr-x=A0= =A0=A0 1 root=A0=A0=A0=A0 root=A0=A0=A0=A0=A0=A0=A0=A0 8.1K Aug 10 08:50 ac= f-dhcp-0.4.0-r0.apk
-rwxr-xr-x=A0=A0=A0 1 root=A0=A0=A0=A0 root=A0=A0=A0= =A0=A0=A0 630.1K Aug 10 08:50 dhcp-4.1.0_p1-r1.apk
-rwxr-xr-x=A0=A0=A0 1 root=A0=A0=A0=A0 root=A0=A0=A0=A0=A0=A0 657.2K Aug 18= 18:11 dhcp-4.1.0_p1-r2.239754d2.apk
-rwxr-xr-x=A0=A0=A0 1 root=A0=A0=A0= =A0 root=A0=A0=A0=A0=A0=A0=A0 96.0K Aug 10 08:50 dhcp-doc-4.1.0_p1-r1.apk-rwxr-xr-x=A0=A0=A0 1 root=A0=A0=A0=A0 root=A0=A0=A0=A0=A0=A0=A0 43.6K Au= g 10 08:50 dhcpcd-5.0.6-r0.apk
-rwxr-xr-x=A0=A0=A0 1 root=A0=A0=A0=A0 root=A0=A0=A0=A0=A0=A0=A0=A0 9.6K Au= g 10 08:50 dhcpcd-doc-5.0.6-r0.apk

thomerson-rt01:~# dhcpd --version=
isc-dhcpd-4.1.0p1

Perhaps that is expected?=A0 Maybe the version= string didn't change with your patch?

thomerson-rt01:~# apk update
fetch http://dev.al= pinelinux.org/alpine/v1.9/packages/main/APKINDEX.tar.gz

thomerso= n-rt01:~# apk add -u dhcp
OK: 46 packages, 186 dirs, 3513 files

Thanks for all the= help!
Jeremy Thomerson
--00163646d444fd2fd504716ec05a-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---