Red Hat Bugzilla – Bug 215498
hald starts as daemon return 0 if it fails
Last modified: 2012-06-20 12:04:08 EDT
Description of problem:
I met a problem with hal daemon as it didn't start but nothing was traced
(syslog, console, service startup) ?!
The problem reported is not why it doesn't start but why there is no trace of
error if hald fails to run.
Thanks for solution.
Version-Release number of selected component (if applicable):
The problem is that hald doesn't return any code different of 0 if it can't
start when daemonize.
hald --daemon=yes (fails, by exemple if messagebus is not running)
echo $? -> 0
Also using service is the same : service haldaemon start --> shows [OK] but hald
is not running.
The only way to know the problem is to start interactivily hald with daemon=no
and verbose=yes .
Steps to Reproduce:
1. init 3
2. service messagebus stop
3. service hald start -> show [OK] in place of [fail]
service should show [fail] and hald --daemon=yes should manage the status of
fork process (included in newer release of hal)
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life.
Please See https://access.redhat.com/support/policy/updates/errata/
If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.