Add instructions for exit and shutdown

This commit is contained in:
Ethan Atkins 2020-06-30 08:44:57 -07:00
parent 44a98186b7
commit 314d9a295d
1 changed files with 5 additions and 2 deletions

View File

@ -672,8 +672,11 @@ class NetworkClient(
catch { case _: InterruptedException => }
if (exitClean.get) 0 else 1
}
if (interactive) block()
else if (exit) 0
console.appendLog(Level.Info, "terminate the server with `shutdown`")
if (interactive) {
console.appendLog(Level.Info, "disconnect from the server with `exit`")
block()
} else if (exit) 0
else {
batchMode.set(true)
val res = batchExecute(userCommands.toList)