Running jar as a Linux service - init.d script gets stuck starting app

夙愿已清 提交于 2019-12-05 11:28:24

Haven't you forgotten a '&' after the line 'java -jar [application stuff]' so that execution continues after that line.

It's exactly the same as if you run the command in console. A '&' after ensures that the console is usable after application start.

That is why it prints "Sagepay-stub started." once you hit ctrl-c because that is when you kill the java process and the bash script continues.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!