TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.79k stars 2.08k forks source link

Remote login, it is not convenient to stop using the web. Tars cpp2.x is on the node side, what is the script command to manually stop the service? #748

Closed TARS-Question closed 4 years ago

TARS-Answer commented 4 years ago

There is no way. After manually killing it, as long as the tarsnode node is still there and the node service status is active, the service will continue to be activated. In the source code implementation, only the stopServer that calls the node node will set the service status to inactive.

TARS-Answer commented 4 years ago

没有办法,手动kill掉之后,只要tarsnode节点还在,并且节点服务状态为active,就会一直拉起服务。源码实现中,只有调用node节点的stopServer才会将服务状态设置为inactive。