1 |
On 9/3/2015 8:59 PM, Fernando Rodriguez wrote: |
2 |
> On Thursday, September 03, 2015 8:09:02 PM Mike Edenfield wrote: |
3 |
|
4 |
>> What makes rc-status think something is crashed, and how can I fix this? |
5 |
>> |
6 |
>> basement log # rc-status -v | grep crashed |
7 |
>> dhcpd [ crashed ] |
8 |
>> basement log # ps aux | grep dhcpd |
9 |
>> root 2214 0.0 0.0 8268 876 pts/0 S+ 19:47 0:00 grep |
10 |
>> --colour=auto dhcpd |
11 |
>> dhcp 2648 0.0 0.6 30028 12136 ? Ss Aug29 0:00 |
12 |
>> /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid |
13 |
>> -lf /var/lib/dhcp/dhcpd.leases -user dhcp -group dhcp -chroot |
14 |
>> /chroot/dhcp enp0s7 |
15 |
>> |
16 |
>> |
17 |
> |
18 |
> This is just a guess but it could be the permissions on the pid file on |
19 |
> /chroot/dhcp/var/run/dhcp/. So stop the daemon, delete the file, check that the |
20 |
> directory is owned by dhcp:dhcp and start the daemon again. |
21 |
> |
22 |
|
23 |
That was a good guess -- I did find something else unrelated wrong with |
24 |
the log file permissions :) But it didn't help here. |
25 |
|
26 |
The directory is owned by dhcp:dhcp, and when I stop the service, the |
27 |
pid file is deleted automatically, which I assume means the permissions |
28 |
are correct: |
29 |
|
30 |
basement log # dir /chroot/dhcp/var/run/dhcp |
31 |
total 8 |
32 |
drwxr-xr-x 2 dhcp dhcp 4096 Sep 4 07:21 ./ |
33 |
drwxr-xr-x 3 root root 4096 Oct 4 2009 ../ |
34 |
basement log # /etc/init.d/dhcpd start |
35 |
* Starting chrooted dhcpd ... |
36 |
[ ok ] |
37 |
basement log # dir /chroot/dhcp/var/run/dhcp |
38 |
total 12 |
39 |
drwxr-xr-x 2 dhcp dhcp 4096 Sep 4 07:21 ./ |
40 |
drwxr-xr-x 3 root root 4096 Oct 4 2009 ../ |
41 |
-rw-r--r-- 1 root root 6 Sep 4 07:21 dhcpd.pid |
42 |
basement log # rc-status -v | grep crashed |
43 |
dhcpd [ crashed ] |
44 |
|
45 |
Also, just for reference, I already tried "zap"; that didn't help |
46 |
because "stop" puts it correctly into the stopped state anyway. |
47 |
|
48 |
--Mike |