-s needs to come after the run command
‘bazel shutdown’ will stop it running, or you can adjust the default idle shutdown time with the following in user.bazelrc in the repo root. You’ll need to restart it after making the change.
startup --max_idle_secs=600