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 112851399E9 for ; Fri, 4 Sep 2015 01:24:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 375601425B; Fri, 4 Sep 2015 01:24:37 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 262A214209 for ; Fri, 4 Sep 2015 01:24:36 +0000 (UTC) Received: by iofh134 with SMTP id h134so7959775iof.0 for ; Thu, 03 Sep 2015 18:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=a1laDJCAes0U1NlEgKklc66JxySAU5qpqPeRlXYYgP0=; b=VHrFnlKLNQZaOrhsd+1K8IOrhpnbzs0PvYczEZ4sszjaOccvaCkypGxZZJfW2awlYr LrczlrgCoZg/pzuTqfWOtERJFamvYDd6laMOf2mbFn3Mq7eVr+4cF+nhB69JdtLb2SKf +jSpH0NMylw+K6Vdwh8vyVrv/jnK67Dpth0+pXZDBHHAKiFL8GfTorUYkk1g6zdNzwGK cPZGhfTJxfJKR0SLTBb/t1ke/i6dJ3CUEqfY++6o4d9l/z+BYq3n5lQloSMbXSZbYYs4 7iTl5edVgDS2aMlbYmIREbKM3ly6ydMkayik/87boHq9tll06LCcP6/2I0MaD+Lifl1O gO3w== 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 X-Received: by 10.107.46.12 with SMTP id i12mr2028480ioo.17.1441329875443; Thu, 03 Sep 2015 18:24:35 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.79.103.70 with HTTP; Thu, 3 Sep 2015 18:24:35 -0700 (PDT) In-Reply-To: <55E8E11E.5030103@kutulu.org> References: <55E8E11E.5030103@kutulu.org> Date: Thu, 3 Sep 2015 21:24:35 -0400 X-Google-Sender-Auth: QV2bqhtbCujEacnSpQS0oQdPvS8 Message-ID: Subject: Re: [gentoo-user] dhcpd always shows "crashed" even though it's running From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 7a4ee72d-fd24-4375-8e88-e908e216d0d4 X-Archives-Hash: 961bc40cf0f03d533d03c538fd6d7022 On Thu, Sep 3, 2015 at 8:09 PM, Mike Edenfield wrote: > For some reason, whenever I check the status of my startup scripts, dhcpd > registers as "crashed". However, dhcpd is up and running and working fine. > Normally I don't worry about it, but on those occasions where dhcpd does > stop working, it's hard to tell if it's "fixed" or not. > > What makes rc-status think something is crashed, and how can I fix this? > Not to sidetrack the discussion, but this is one of the areas where systemd does shine, in a sense. If systemd thinks the service is down, it is definitely down, because by default when systemd thinks a service is down it kills anything it ever spawned (and it can auto-restart if configured to do so). So, this forces to you configure the unit correctly so that you don't have these kinds of maybe-running-maybe-not situations. It is a bit like having strong types and stricter build-time error checking. It makes it a little harder to be lazier but saves you as the user from the lazy developer. As far as openrc goes, I suspect it is a pid file issue of some kind. If a process goes and forks without putting the right pid in the file then there is no way for openrc to detect this. -- Rich