A coworker and I discovered an issue with jboss’ run.sh (which starts the app server). The problem lies in different flavours of unix (or unix-like) shells returning different values for wait. The relevant code is:
This is all well and good in linux — redhat uses /bin/bash and ubuntu uses /bin/dash for /bin/sh — …