This content has been marked as final. Show 2 replies
nexec -e "su jboss -c '/var/bin/start-java-app.sh' && sleep 5"
Sometimes, nexec closes too fast for the commands to actually execute when you run something from a script.
Thanks a lot for this hint. It works now