[Bug 1465691] Re: init script doesn't handle hanging tomcat processes

Mathew Hodson mathew.hodson at gmail.com
Sun Dec 11 22:41:26 UTC 2016


** Tags added: trusty

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1465691

Title:
  init script doesn't handle hanging tomcat processes

Status in tomcat7 package in Ubuntu:
  Confirmed
Status in tomcat8 package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu version:

  Description:    Ubuntu 14.04.1 LTS
  Release:        14.04
  --------------------------------------------------------
  package version:

  tomcat7:
    Installed: 7.0.52-1ubuntu0.1
    Candidate: 7.0.52-1ubuntu0.1
    Version table:
   *** 7.0.52-1ubuntu0.1 0
  --------------------------------------------------------
  Expected:
  when the start-stop-daemon fails to stop the process (e.g. Java VM stuck), it returns 2. I expect the script to return an error message, exit code != 0 and not remove the PID file.

  --------------------------------------------------------
  Happens:
  The init script checks the return codes for start-stop-daemon and handles "1" and "3" correctly. All others are handled like a "0":
  - pid file removed
  - exitcode of the init script is "0"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1465691/+subscriptions



More information about the Ubuntu-sponsors mailing list