MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / daemon_restart

Function daemon_restart

src/cocoindex_code/cli.py:1042–1052  ·  view source on GitHub ↗

Restart the daemon.

()

Source from the content-addressed store, hash-verified

1040@daemon_app.command("restart")
1041@_catch_daemon_start_error
1042def daemon_restart() -> None:
1043 """Restart the daemon."""
1044 from .client import _wait_for_daemon, start_daemon, stop_daemon
1045
1046 _typer.echo("Stopping daemon...")
1047 stop_daemon()
1048
1049 _typer.echo("Starting daemon...")
1050 proc = start_daemon()
1051 _wait_for_daemon(proc=proc)
1052 _typer.echo("Daemon restarted.")
1053
1054
1055@daemon_app.command("stop")

Callers

nothing calls this directly

Calls 3

stop_daemonFunction · 0.85
start_daemonFunction · 0.85
_wait_for_daemonFunction · 0.85

Tested by

no test coverage detected