tomcat fails to start with: /bin/bash already running.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Lucid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: tomcat6
While it's not recommended to run tomcat as root, there are circumstances that make it a necessity, like embedded systems. (IMHO Linux should not enforce policy at this level)
Anyway, setting the following in /etc/default/
TOMCAT6_USER=root
Yields this when trying to start tomcat:
#> /etc/init.d/tomcat6 start
* Starting Tomcat servlet engine tomcat6 /bin/bash already running.
If there are _any_ login sessions on the machine, IOW if there are any bash instances, it fails to run.
So, here's a patch that fixes this while not making any changes to policy or who can run what as who.
Here's the relevant version info:
Ubuntu 64 bit 10.04
ii libtomcat6-java 6.0.24-2ubuntu1.2 Servlet and JSP engine -- core libraries
ii tomcat-cfg 6.0.15-01 OSA tomcat config
ii tomcat6 6.0.24-2ubuntu1.2 Servlet and JSP engine
ii tomcat6-admin 6.0.24-2ubuntu1.2 Servlet and JSP engine -- admin web applications
ii tomcat6-common 6.0.24-2ubuntu1.2 Servlet and JSP engine -- common files
Changed in tomcat6 (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: patch |
Changed in tomcat6 (Ubuntu): | |
importance: | Low → Medium |
Changed in tomcat6 (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Triaged → In Progress |
Changed in tomcat6 (Ubuntu Lucid): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: |
added: verification-done removed: verification-needed |
Left debug info in patch...sorry. New patch attached.