将springboot作为systemd服务启动时,如何解决:“ start-stop-daemon:警告:该系统无法跟踪进程名称”?

时间:2018-07-06 21:06:35

标签: spring-boot systemd

当我将spring boot应用程序作为systemd服务启动时,出现此错误:

start-stop-daemon: warning: this system is not able to track process names longer than 15 characters, please use --exec instead of --name.

Spring Boot似乎是从jar名称和jar所在的目录构建进程名称。除了重命名jar及其包含的目录以使其少于15个字符外,还有什么方法可以解决此问题? ?

如果我尝试编辑spring boots启动脚本以使用--exec而不是--name,则会出现另一个错误:

'start-stop-daemon: unable to stat /opt/program/programname_optprogramname (No such file or directory)

1 个答案:

答案 0 :(得分:0)

看来,这个问题在Spring boot 2.0.2中已解决。因此,如果您遇到此问题,则升级可能会解决该问题(并不意味着升级始终很简单)