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

执行./sudo_before_shutdown.sh报错,是否考虑Installation as an init.d service (System V) #568

Closed
lyg123 opened this issue Mar 14, 2017 · 5 comments

Comments

@lyg123
Copy link

lyg123 commented Mar 14, 2017

具体信息如下:
grep: /usr/lib/systemd/system/ctripapp@100003173.service: No such file or directory
sed: can't read /usr/lib/systemd/system/ctripapp@100003173.service: No such file or directory
./sudo_before_shutdown.sh: line 7: systemctl: command not found

是否可以考虑提供Installation as an init.d service (System V)脚本

@nobodyiam
Copy link
Member

sudo_before_shutdown.sh 这个没啥用的,是为了解决ctrip内部的一个服务设置问题。

installation as an init.d service脚本不知是否有相关资料可以参考?我们不是太熟悉。。。

@lyg123
Copy link
Author

lyg123 commented Mar 14, 2017

有用吧,方便启停,要不然需要跑到每个script下面执行脚本
我也是看到https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#deployment-initd-service
得出来的。
主要是脚本中LimitNOFILE=65536这个不知道init.d如何写。

@nobodyiam
Copy link
Member

感谢建议,我们后面研究一下~

@lyg123
Copy link
Author

lyg123 commented Mar 14, 2017

嗯。我这边也研究下

@nobodyiam
Copy link
Member

目前使用下来,通过startup.sh和shutdown.sh能满足大部分场景,这个issue先关闭了。

如果有更好的建议,可以提Feature Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants