Forum Discussion

vikramMishraRabobank's avatar
vikramMishraRabobank
Copper Contributor
Nov 10, 2021

Server stops after the restart bash script pipeline task is finished

Hey Everyone,

 

We are using bash script task to restart tomcat server after deployment is done. But the server is immediately stopped when this task is finished. We tried  sleeping longer to let the script finish, but even after sleep time server just stops. We are unable to restart server after deployment. We also tried nohup and & to run the restart script in background, but no help.

 

Can someone please help us, as this has halted our release

  • Shiva_Shankar_P's avatar
    Shiva_Shankar_P
    Copper Contributor
    Please let me know if you have found any solution?

    I am also facing a similar problem. I am starting tomcat from Bash task in a pipeline, the server is starting successfully but Bash task is not getting completed once the server is started. If I am configuring the timeout for the bash task, the server is getting stopped.

Resources