Restart daemon (it may or may not be running; but not hanging).
(args: argparse.Namespace, allow_sources: bool = False)
| 333 | |
| 334 | |
| 335 | def restart_server(args: argparse.Namespace, allow_sources: bool = False) -> None: |
| 336 | """Restart daemon (it may or may not be running; but not hanging).""" |
| 337 | try: |
| 338 | do_stop(args) |
| 339 | except BadStatus: |
| 340 | # Bad or missing status file or dead process; good to start. |
| 341 | pass |
| 342 | start_server(args, allow_sources) |
| 343 | |
| 344 | |
| 345 | def start_server(args: argparse.Namespace, allow_sources: bool = False) -> None: |
no test coverage detected
searching dependent graphs…