Systemd tomcat.service failed with no errors

后端 未结 1 1221
半阙折子戏
半阙折子戏 2021-01-20 00:43

I have Tomcat configured to run as a service using Systemd on CentOS 7.2. I can start Tomcat with no problems:

sudo systemctl start tomcat

相关标签:
1条回答
  • 2021-01-20 01:09

    Ah, never mind; this has been answered already on serverfault for general Java applications.

    Basically Java programs sometimes don't send back the expected exit status when shutting down in response to SIGTERM. Adding the following to the tomcat.service file fixes the problem:

    [Service]
    SuccessExitStatus=143
    
    0 讨论(0)
提交回复
热议问题