How to restart jboss server in the background in pipeline

I wanted to restart JBoss in my pipeline after deployment. When I am restarting JBoss it continues the job running and it doesn’t move to another job and I get timeout error and pipeline fails. Kindly let me know how can I start JBoss in the background so that after restarting JBoss it should start triggering the next job.

somebody told me to use nogup in the beginning and & in the end but it’s not working.
nohup sudo sh /usr/share/jboss-eap-6.3/bin/ &

Thanks in advance