Tomcat 5.5 startup script fail if temp directory contains subdirectories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat5.5 (Debian) |
Fix Released
|
Unknown
|
|||
tomcat5.5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu Gutsy 7.10, tomcat 5.5 has a little bug in the startup script (/etc/init.
To me this happens because a Java library I use (Geotools) does exactly that. The first start goes well, and it creates the directory /var/lib/
The second start fail. This is the error I get on the console:
* Starting Tomcat servlet engine tomcat5.5
rm: cannot remove `/var/lib/
rm: cannot remove `/var/lib/
rm: cannot remove `/var/lib/
I have to delete manually the directory /var/lib/
Fabio Da Soghe
Changed in tomcat5.5: | |
status: | Unknown → Fix Released |
I did a little patch (attached as diff file to be applied to /etc/init. d/tomcat5. 5).
Basically, it seems the command that has to clean up the temp directory didn't take into consideration the presence of subdirectories. I added the -r option to the rm command :-)
Could it be possible to have this patch applied to the official repository package? Thanks in advance!
Cheers,
Fabio