Downcity
Commands

city restart

Restart city runtime, restore managed agents, then restart Console

city restart

Restart the full city runtime stack.

Current behavior:

  1. stop Console
  2. stop city runtime
  3. restart city runtime
  4. restore managed agents that were running before restart
  5. restart Console

During the stop phase, Downcity stops the matching process group first. ACP executors, shell sessions, and watch child processes started by an agent stop with the parent, so old children do not keep consuming memory after the restart.

Usage

city restart

Example output

$ city restart
city version: 1.0.0
✅ Console stopped
   pid: <consolePid>
✅ DC console stopped
   pid: <cityPid>
✅ DC console started
   pid: <newCityPid>
Restarting 2 managed agents...
✅ Console started
   pid: <newConsolePid>
   url: http://127.0.0.1:5315