Bug 130849 - hal hangs startup
hal hangs startup
Product: Fedora
Classification: Fedora
Component: hal (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Zeuthen
Depends On:
  Show dependency treegraph
Reported: 2004-08-25 04:40 EDT by Kaj J. Niemi
Modified: 2013-03-05 22:41 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-08-25 05:35:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kaj J. Niemi 2004-08-25 04:40:08 EDT
Description of problem:
Hal hangs if service messagebus is not running before service
haldaemon is started.

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

How reproducible:

Steps to Reproduce:
1. /sbin/service messagebus stop
2. /sbin/service haldaemon restart (or start)
3. wait forever
Actual results:

Expected results:
Should fail.

Additional info:

(dbus not running)
# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no
11:18:59.173 [E] hald_dbus.c:1922: dbus_bus_get(): Failed to connect
to socket /var/run/dbus/system_bus_socket: No such file or directory

I looked at it with strace -f and if run without --daemon=no hald
attempts to read something from a file descriptor but never returns.
Comment 1 David Zeuthen 2004-08-25 05:35:46 EDT
Right, should be fixed in Rawhide. See


for more information. So I'm closing this bug.

Question: This '# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no' doesn't
hang if the messagebus isn't running, right?
Comment 2 Kaj J. Niemi 2004-08-25 06:27:52 EDT

Right, it does not hang.

[root@d117 ~]# /sbin/service haldaemon stop
Stopping HAL daemon:                                       [  OK  ]
[root@d117 ~]# /sbin/service messagebus stop
Stopping system message bus:                               [  OK  ]
[root@d117 ~]# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no
13:29:15.661 [E] hald_dbus.c:1922: dbus_bus_get(): Failed to connect
to socket /var/run/dbus/system_bus_socket: Connection refused
[root@d117 ~]#

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