MCPcopy Index your code
hub / github.com/cameri/nostream / restartRelay

Function restartRelay

src/cli/commands/config.ts:68–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68const restartRelay = async (): Promise<number> => {
69 const spinner = ora('Restarting relay...').start()
70
71 const stopCode = await runStop({ all: true }, [])
72 if (stopCode !== 0) {
73 spinner.fail('Restart failed while stopping relay')
74 return stopCode
75 }
76
77 const startCode = await runStart({}, [])
78 if (startCode !== 0) {
79 spinner.fail('Restart failed while starting relay')
80 return startCode
81 }
82
83 spinner.succeed('Relay restarted')
84 return 0
85}
86
87export const runConfigList = async (options: { json?: boolean } = {}): Promise<number> => {
88 const settings = loadMergedSettings()

Callers 1

runConfigSetFunction · 0.85

Calls 2

runStopFunction · 0.90
runStartFunction · 0.90

Tested by

no test coverage detected