How do I keep a process, specifically one spawned via the sbt
command, alive after exiting my ssh
session? The following related questions [1], [2], [3
It is not a easy task to put sbt run as a daemon.
Most suggestions are using sbt-assembly.
If you donot want to using sbt-assembly, you may first package you scala application, then run it with scala command.
For me, the commands are, in this way, scala will continue to run after you exit ssh:
sbt clean package
nohup scala ./target/scala-2.10/trafficgenerator_2.10-1.0.jar &