public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] dhcpd always shows "crashed" even though it's running
Date: Thu, 3 Sep 2015 21:24:35 -0400	[thread overview]
Message-ID: <CAGfcS_n2Y=EewOp3E_0=mBBTC7anf9Z3a5cH52EJ-M0qyKD8yw@mail.gmail.com> (raw)
In-Reply-To: <55E8E11E.5030103@kutulu.org>

On Thu, Sep 3, 2015 at 8:09 PM, Mike Edenfield <kutulu@kutulu.org> 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


      parent reply	other threads:[~2015-09-04  1:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  0:09 [gentoo-user] dhcpd always shows "crashed" even though it's running Mike Edenfield
2015-09-04  0:59 ` Fernando Rodriguez
2015-09-04  1:47   ` Dale
2015-09-04  2:12     ` Fernando Rodriguez
2015-09-04  2:46       ` Dale
2015-09-04  7:06         ` Mick
2015-09-04  8:48           ` Neil Bothwick
2015-09-04  9:10             ` Mick
2015-09-04  9:31               ` Neil Bothwick
2015-09-04  9:16           ` Fernando Rodriguez
2015-09-05 16:43           ` Mike Edenfield
2015-09-04 11:25   ` Mike Edenfield
2015-09-04 19:28     ` Fernando Rodriguez
2015-09-04  1:24 ` Rich Freeman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGfcS_n2Y=EewOp3E_0=mBBTC7anf9Z3a5cH52EJ-M0qyKD8yw@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox