MCPcopy Create free account
hub / github.com/cppla/ServerStatus / signal_sergate

Function signal_sergate

server/manage_api.py:233–238  ·  view source on GitHub ↗
(sig)

Source from the content-addressed store, hash-verified

231
232
233def signal_sergate(sig):
234 pid = get_sergate_pid()
235 if not pid:
236 raise ApiError(503, "sergate process was not found")
237 os.kill(pid, sig)
238 return pid
239
240
241def find_server(config, username):

Callers 2

write_and_reloadFunction · 0.85
routeMethod · 0.85

Calls 2

get_sergate_pidFunction · 0.85
ApiErrorClass · 0.85

Tested by

no test coverage detected