tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bradleymccrorey <>
Subject Re: Using eval vs. exec in shell scripts
Date Sat, 25 Jun 2011 23:45:14 GMT

I'll be watching this quite closely. We run thousands of TC6 instances onsite
here, and are a daemontools shop. This change breaks daemontools, as the
"svc" command will attempt to stop the tomcat service by sending a TERM to
the process, which leaves the child java process still running.

For one customer who insists on TC7, I've had to take the measure of
changing the script to use the old method for now. This is not
maintainable, however. Should there be a bug filed somewhere for this?

Bradley McCrorey

Rainer Jung-3 wrote:
> Since Mladens change r918873 in March 2010 we use eval instead of exec
> in the shell scripts. The svn log says:
> "Use eval instead direct call or exec command so that arguments with
> spaces are properly handled"
> Eval leaves a copy of the shell process hanging around until Tomcat
> shutdown. I want to experiment with different solutions, but have no
> idea, what kind of whitespace use the switch from exec to eval was
> supposed to change.
> Mladen or whoever else understood this: can you give an example which
> didn't work with the exec based scripts?
> Regards,
> Rainer
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message