Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218028 - openrc-0.2.2: rc-status report dhcdbd service as crashed when run as normal user
Summary: openrc-0.2.2: rc-status report dhcdbd service as crashed when run as normal user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 215940 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-16 21:23 UTC by Jie Luo
Modified: 2008-05-10 09:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Don't report crashed when we don't have permission to read the pidfile (status.patch,1.66 KB, patch)
2008-04-21 10:58 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jie Luo 2008-04-16 21:23:13 UTC
rc-status report dhcdbd service as [ started ] when run as root, but report it as [ crashed ] when run as normal user. This may be related to the pid file created by dhcdbd, it looks strange.

l /var/run/dhcdbd.pid 
--wS--S--T 1 root root 5 2008-04-17 05:01 /var/run/dhcdbd.pid

Reproducible: Always

Steps to Reproduce:
1. run rc-status as normal user.
2.
3.

Actual Results:  
Runlevel: default
 syslog-ng                                                                                                       [  started  ]
 gpm                                                                                                             [  started  ]
 hdparm                                                                                                          [  started  ]
 dbus                                                                                                            [  started  ]
 consolekit                                                                                                      [  started  ]
 hald                                                                                                            [  started  ]
 xdm                                                                                                             [  started  ]
 fuse                                                                                                            [  started  ]
 ntpd                                                                                                            [  started  ]
 sshd                                                                                                            [  started  ]
 fcron                                                                                                           [  started  ]
 dhcdbd                                                                                                          [  crashed  ]
 NetworkManager                                                                                                  [  started  ]
 postfix                                                                                                         [  started  ]
 local                                                                                                           [  started  ]
Runlevel: UNASSIGNED


Expected Results:  
Runlevel: default
 syslog-ng                                                                                                       [  started  ]
 gpm                                                                                                             [  started  ]
 hdparm                                                                                                          [  started  ]
 dbus                                                                                                            [  started  ]
 consolekit                                                                                                      [  started  ]
 hald                                                                                                            [  started  ]
 xdm                                                                                                             [  started  ]
 fuse                                                                                                            [  started  ]
 ntpd                                                                                                            [  started  ]
 sshd                                                                                                            [  started  ]
 fcron                                                                                                           [  started  ]
 dhcdbd                                                                                                          [  started  ]
 NetworkManager                                                                                                  [  started  ]
 postfix                                                                                                         [  started  ]
 local                                                                                                           [  started  ]
Runlevel: UNASSIGNED
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-04-16 21:36:57 UTC
This goes back to what we were talking about last week Roy. We basically need to say "hey permissions weren't available to get this info accurately"
Comment 2 Roy Marples 2008-04-17 00:30:36 UTC
(In reply to comment #1)
> This goes back to what we were talking about last week Roy. We basically need
> to say "hey permissions weren't available to get this info accurately"
> 

I suppose we could tag a message at the end of rc-status saying "Some services are reported as crashed, but as you're not the root user we may not have full permission to check" or some such.

BTW, if you talk to me, add me to the CC list :P
Comment 3 Roy Marples 2008-04-21 10:58:06 UTC
Created attachment 150489 [details, diff]
Don't report crashed when we don't have permission to read the pidfile

This should fix things
Comment 4 Jie Luo 2008-04-21 23:35:21 UTC
(In reply to comment #3)
> Created an attachment (id=150489) [edit]
> Don't report crashed when we don't have permission to read the pidfile
> 
> This should fix things
> 

Yes, it works.
Comment 5 geek 2008-05-08 15:59:43 UTC
*** Bug 215940 has been marked as a duplicate of this bug. ***
Comment 6 geek 2008-05-08 16:01:57 UTC
This can be closed now.  It is fixed in openrc-0.2.3.