Nik Kashi
Nik Kashi

Reputation: 4606

exit console after starting play framework application

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

Answers (2)

i.am.michiel
i.am.michiel

Reputation: 10404

Use any process manager you want :

  • screen
  • nohup
  • upstart
  • systemd
  • supervisord

BTW, if this is production, you might consider using the start script created when packaging your application.

Upvotes: 4

Mon Calamari
Mon Calamari

Reputation: 4463

Use nohupas follows nohup ./script &. It is also useful when starting applications from remote shell.

Upvotes: 2

Related Questions