By default bash does not support job control in non-interactive shells. Implementation of user script timeout currently does not work because script can't be executed in background. Either `set -m` needs to be inserted just before running the script in the background or some other mechanism for running in the background needs to be used. This bug is not critical because user script still works, just the benefit of timing out a stale script is missing.
Attention: Farah & Aleksandar I have taken the description of this bug and drafted text for its Release Note. In it I said that no workaround is available but in the description you say that other options may be possible. I can't understand the comment about "set -m" because I have tried to find information on that option and can't find any. Is this a feature of the Bash shell?
Russel, users can implement timeout functionality in their own scripts but it doesn't really make sense because they would already try to write their scripts in a way the do not hang. The implementation we had wanted to achieve the ability for users to still login to the machine and debug their script execution if it happens to hang. End effect is that it is hard to debug user script hangs.
I wanted to say, I think release notes are fine except I'm not sure what we really can say about workaround.
Aleksandar, I've updated jboss_user-data.sh so that `set -m` is called in order to enable job control before running the script in the background: http://git.app.eng.bos.redhat.com/?p=mw-cloud.git;a=commit;h=005434d4007f5fcc3ecc971e7b22503dd50434d2 This fix will be included in the EAP 6.1.1 ER3 EC2 RPM (which should be ready around July 23).
Update status to MODIFIED, so that I can be added to errata https://errata.devel.redhat.com/advisory/14959
I thought this is closed long ago. Anyways trying it now with 6.1.1 it works very well. Thank you.
Modified Doc Text from a known issue description to a fixed issue description.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1248.html