init script doesn't handle hanging tomcat processes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat7 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
tomcat8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
tomcat9 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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"
Changed in tomcat7 (Ubuntu): | |
status: | New → Confirmed |
Changed in tomcat8 (Ubuntu): | |
status: | New → Confirmed |
tags: | added: trusty |
Changed in tomcat7 (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in tomcat8 (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in tomcat7 (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in tomcat8 (Ubuntu): | |
status: | Incomplete → Confirmed |
The attachment "Patch which handles errorcode 2" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]