New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生命周期组建怎么使用 #61
Comments
刚刚添加了示例。 在对应需要生命周期通知的服务器类型根目录下添加一个 lifecycle 文件就可以了。 |
还想问一下啊 cancelShutDownTimer 这个方法的用途和使用方法 |
|
嗯 好的 谢谢 |
master进程与其它业务进程独立启动,不然master进程结束的时候 子进程也会被强制退出。 |
master如何独立启动? @whtiehack |
我在#44找到了,但是这样就变得很复杂,其他业务进程也得一个个开。而且这样其实cancelShutDownTimer 也没有什么存在的意义了 |
我们是用 pm2控制所有进程的(wiki有更新相关的配置文件启动示例,可以参考一下)。 可以参考一下。 |
"通过给逻辑进程发送admin命令" 这个有参考吗?单独使用pinus stop serverId不是关了后会自动重启么 |
自己写逻辑啊。 我只是说的我们是这样处理的。要看你自己的具体逻辑。 |
lifecycle 接口怎么使用,有没有例子
The text was updated successfully, but these errors were encountered: