This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 535803 - (RHQ-2461) Improvement in to be able to use on all linux distributions
Improvement in to be able to use on all linux distributions
Product: RHQ Project
Classification: Other
Component: Launch Scripts (Show other bugs)
All All
low Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
: Improvement
Depends On:
  Show dependency treegraph
Reported: 2009-10-11 13:44 EDT by Darko Palic
Modified: 2009-10-12 08:32 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Tested on Ubuntu 9.04, 8.04, 8.10
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rhq-agent-wrapper.patched (800 bytes, application/octet-stream)
2009-10-11 13:46 EDT, Darko Palic
no flags Details

  None (edit)
Description Darko Palic 2009-10-11 13:44:00 EDT
The current script is not capable to be used directly as a startup script. The lookup of the scriptname with readlink "readlink isn't recursive.
The error can be reproduced by creating a link from /etc/init.d/rhq-agent -> mypathToTheScript
And if you now add the /etc/init.d/rhq-agent into the rcX.d folder with the typical symlink the startup will fail should be changed from 
_DOLLARZERO=`readlink "$0" || echo "$0"`

_DOLLARZERO=`readlink -f "$0" || echo "$0"`

The -f forces that all symlinks get recusivly resolved until a proper file is reached.
Comment 1 Darko Palic 2009-10-11 13:46:02 EDT
Here the patch for the wrapper script

Sorry found this related issue to late:
Comment 2 Red Hat Bugzilla 2009-11-10 16:04:53 EST
This bug was previously known as
Imported an attachment (id=368801)
This bug duplicates RHQ-2444

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