From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CB5FF1399E6 for ; Fri, 4 Sep 2015 11:25:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E15D0143CD; Fri, 4 Sep 2015 11:25:35 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.225]) by pigeon.gentoo.org (Postfix) with ESMTP id BBC3214337 for ; Fri, 4 Sep 2015 11:25:34 +0000 (UTC) Received: from [142.196.218.75] ([142.196.218.75:46145] helo=basement.kutulu.org) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 78/3B-12206-EAF79E55; Fri, 04 Sep 2015 11:25:34 +0000 Received: from localhost (basement.kutulu.org [127.0.0.1]) by basement.kutulu.org (Postfix) with ESMTP id AC56A7D801D for ; Fri, 4 Sep 2015 07:25:30 -0400 (EDT) X-Virus-Scanned: amavisd-new at kutulu.org Received: from basement.kutulu.org ([127.0.0.1]) by localhost (basement.kutulu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IK-NTTJeP1dQ for ; Fri, 4 Sep 2015 07:25:30 -0400 (EDT) Received: from [192.168.69.91] (wombat.kutulu.org [192.168.69.91]) by basement.kutulu.org (Postfix) with ESMTPSA id 9888A7D801C for ; Fri, 4 Sep 2015 07:25:29 -0400 (EDT) Subject: Re: [gentoo-user] dhcpd always shows "crashed" even though it's running To: gentoo-user@lists.gentoo.org References: <55E8E11E.5030103@kutulu.org> From: Mike Edenfield Message-ID: <55E97FAB.7040700@kutulu.org> Date: Fri, 4 Sep 2015 07:25:31 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-Archives-Salt: 3e2e5930-abe9-4ffb-8b14-bf9c859b9397 X-Archives-Hash: 97c0be15cb560db7c5d038d075e0e4e8 On 9/3/2015 8:59 PM, Fernando Rodriguez wrote: > On Thursday, September 03, 2015 8:09:02 PM Mike Edenfield wrote: >> What makes rc-status think something is crashed, and how can I fix this? >> >> basement log # rc-status -v | grep crashed >> dhcpd [ crashed ] >> basement log # ps aux | grep dhcpd >> root 2214 0.0 0.0 8268 876 pts/0 S+ 19:47 0:00 grep >> --colour=auto dhcpd >> dhcp 2648 0.0 0.6 30028 12136 ? Ss Aug29 0:00 >> /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid >> -lf /var/lib/dhcp/dhcpd.leases -user dhcp -group dhcp -chroot >> /chroot/dhcp enp0s7 >> >> > > This is just a guess but it could be the permissions on the pid file on > /chroot/dhcp/var/run/dhcp/. So stop the daemon, delete the file, check that the > directory is owned by dhcp:dhcp and start the daemon again. > That was a good guess -- I did find something else unrelated wrong with the log file permissions :) But it didn't help here. The directory is owned by dhcp:dhcp, and when I stop the service, the pid file is deleted automatically, which I assume means the permissions are correct: basement log # dir /chroot/dhcp/var/run/dhcp total 8 drwxr-xr-x 2 dhcp dhcp 4096 Sep 4 07:21 ./ drwxr-xr-x 3 root root 4096 Oct 4 2009 ../ basement log # /etc/init.d/dhcpd start * Starting chrooted dhcpd ... [ ok ] basement log # dir /chroot/dhcp/var/run/dhcp total 12 drwxr-xr-x 2 dhcp dhcp 4096 Sep 4 07:21 ./ drwxr-xr-x 3 root root 4096 Oct 4 2009 ../ -rw-r--r-- 1 root root 6 Sep 4 07:21 dhcpd.pid basement log # rc-status -v | grep crashed dhcpd [ crashed ] Also, just for reference, I already tried "zap"; that didn't help because "stop" puts it correctly into the stopped state anyway. --Mike