/** * For copyright information see the LICENSE document. */ package entice.server import entice.server._ import akka.actor.{ ActorSystem, Props } import akka.pattern.ask import akka.util.Timeout import com.typesafe.config.ConfigFactory import scala.concurrent.Await import scala.concurrent.duration._ object Main extends App { lazy val config = ConfigFactory.parseString(""" akka { loglevel = DEBUG log-dead-letters-during-shutdown = off } """) val system = ActorSystem("server-sys", config = config) val server = system.actorOf(Props[ServerActorSlice], "server") // wait till shutdown while (readLine != "exit") {} system.shutdown }