Restart daemon (it may or may not be running; but not hanging). We first try to stop it politely if it's running. This also sets mypy flags from the command line (see do_start()).
(args: argparse.Namespace)
| 324 | |
| 325 | @action(restart_parser) |
| 326 | def do_restart(args: argparse.Namespace) -> None: |
| 327 | """Restart daemon (it may or may not be running; but not hanging). |
| 328 | |
| 329 | We first try to stop it politely if it's running. This also sets |
| 330 | mypy flags from the command line (see do_start()). |
| 331 | """ |
| 332 | restart_server(args) |
| 333 | |
| 334 | |
| 335 | def restart_server(args: argparse.Namespace, allow_sources: bool = False) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…