From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] dhcpd always shows "crashed" even though it's running
Date: Thu, 3 Sep 2015 22:12:35 -0400 [thread overview]
Message-ID: <BLU436-SMTP1677C9BFB2DE87FFA1FC81D8D570@phx.gbl> (raw)
In-Reply-To: <55E8F836.8030706@gmail.com>
On Thursday, September 03, 2015 8:47:34 PM Dale wrote:
> Fernando Rodriguez wrote:
> > On Thursday, September 03, 2015 8:09:02 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?
> >>
> >> 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.
> >
>
>
> I don't know if this will help or not but don't forget the zap option.
>
> root@fireball / # /etc/init.d/dhcpcd <tab twice>
> broken ineed iuse needsme pause restart start status
> stop usesme zap
> root@fireball / # /etc/init.d/dhcpcd
>
> It's been a long time since I used it but if I recall correctly that
> resets the status. I think it stops and deletes any files that stores
> its run status.
>
> If that doesn't apply, just ignore me. Heck, a lot of people ignore
> me. lol
>
> Dale
>
> :-) :-)
>
It does. I knew about it but never used it and didn't know what it'll do if
the permissions are wrong so I thought I'd minimize the chances of being
wrong.
--
Fernando Rodriguez
next prev parent reply other threads:[~2015-09-04 2:13 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 [this message]
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
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=BLU436-SMTP1677C9BFB2DE87FFA1FC81D8D570@phx.gbl \
--to=frodriguez.developer@outlook.com \
--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