Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 100965 - dbus /etc/init.d/messagebus service status reports messagebus dead but pid file exists when service is running
Summary: dbus /etc/init.d/messagebus service status reports messagebus dead but pid f...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: dbus
Version: beta1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: CambridgeBlocker
TreeView+ depends on / blocked
 
Reported: 2003-07-28 04:00 UTC by Michael Kearey
Modified: 2007-04-18 16:56 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-21 19:40:07 UTC
Embargoed:


Attachments (Terms of Use)
Working /etc/init.d/messagebus script (deleted)
2003-07-28 04:02 UTC, Michael Kearey
no flags Details

Description Michael Kearey 2003-07-28 04:00:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030612

Description of problem:
I have found a tiny little problem in an init script for the new 'messagebus'
service.

Even though the daemon called dbus-daemon-1 which is started by the init script
/etc/init.d/messagebus is running, the command 'service messagebus status'
returns 'messagebus dead but pid file exists'.

This is due to a small error in the /etc/init.d/messagebus init script. 
status)
	status messagebus
	RETVAL=$?
	;;

There is no such process as 'messagebus' the process is dbus-daemon-1.
I added line: 

processname=dbus-daemon-1

And changed to :

status)
	status $processname
	RETVAL=$?
	;;
It now reports that the process is running, as it should.

I will add an attatchment of the complete script..

Version-Release number of selected component (if applicable):
dbus-0.11.91-2

How reproducible:
Always

Steps to Reproduce:
1.su to root
2.Start messagebus service 'service messagebus start'
3.Run command 'service messagebus status'
    

Actual Results:  'messagebus dead but pid file exists'.


Expected Results:  dbus-daemon-1 (pid XXXX) is running

Comment 1 Michael Kearey 2003-07-28 04:02:32 UTC
Created attachment 93184 [details]
Working /etc/init.d/messagebus  script

Very simple fix.

Comment 2 Havoc Pennington 2003-07-28 14:05:12 UTC
Applied to CVS, needs to be built in RPM form. Thanks.

Comment 3 Miloslav Trmac 2003-10-18 13:55:53 UTC
Fix confirmed.


Note You need to log in before you can comment on or make changes to this bug.