Skip to content
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

A4上的SmartOS系统中星尘代理StarAgent使用SysVinit异常 #17

Open
nnhy opened this issue Jun 20, 2024 · 1 comment
Open

A4上的SmartOS系统中星尘代理StarAgent使用SysVinit异常 #17

nnhy opened this issue Jun 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nnhy
Copy link
Member

nnhy commented Jun 20, 2024

A4运行的SmartOS来自Linux的Buildroot裁剪。
SmartOS没有systemd,星尘代理StarAgent原来使用RcInit。
由于存在/etc/init.d/目录,新代码识别为SysVinit。
经过核对init.d目录里面的内容,的确符合SysVinit标准,后续可以让SmartOS使用SysVinit。

StarAgent升级最后一步是重启服务,此时调用 /etc/init.d/StarAgent restart,脚本内部先stop再start。
而SysVinit内的stop实现,又是调用 /etc/init.d/StarAgent stop,两者互相调用形成了死循环。
可参考RcInit实现,先Host.Stop实现为kill进程。

@nnhy nnhy added the bug Something isn't working label Jun 20, 2024
@nnhy
Copy link
Member Author

nnhy commented Jun 20, 2024

T7VC$8R}B1O 5OY7C8C4W
$ T%6%B0R_~)PWZU{FGWPGD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants