Reputation: 4606
I write a shell script for starting two play framework application.
cd /someDirectory
activator "start -Dhttp.port=9001"
cd /anotherDirectory
activator "start -Dhttp.port=9002"
after running the shell script, running process sleeps after starting first application (because play framework stay in shell after start command until pressing Ctrl + D)
How can I say to activator release shell after starting?
Upvotes: 0
Views: 653
Reputation: 10404
Use any process manager you want :
BTW, if this is production, you might consider using the start script created when packaging your application.
Upvotes: 4
Reputation: 4463
Use nohup
as follows nohup ./script &
. It is also useful when starting applications from remote shell.
Upvotes: 2