tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Arizón <e_arizon_ben...@yahoo.com>
Subject Re: Bug in tomcat scripts?
Date Wed, 13 Aug 2008 20:20:56 GMT




----- Mensaje original ----
De: Christopher Schultz <chris@christopherschultz.net>
Para: Tomcat Users List <users@tomcat.apache.org>
Enviado: martes, 12 de agosto, 2008 19:30:51
Asunto: Re: Bug in tomcat scripts?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Enrique,

Enrique Arizón wrote:
| # rm -rf $(cwd)/.. && /etc/init.d/tomcat5 restart

"Does this seem like a good idea to you?

Hmm... "I added 'rm -rf' to my script and now I can't find any files!"

The use case was more complex actually. My tomcat app keeps some data in the .../webapp/MyApp
directory. During unit tests I remove MyApp, redeploy it after compiling and restart tomcat.
(Not such an unusual scenario). The case is that the remove && redeploy &&
restart is executed in a shell script, and if suddenly I execute it while in webapp/MyApp
tomcat is destroyed.

" I can't imagine that this has anything to do with the scripts that ship with any version
of Tomcat.

Maybe you could post the entire script and we can figure out why you might want to delete
an entire directory tree just for the heck of it.

- -chris"

After browsing the scripts it looks to be related with the makeHomeDir() function in the Mandriva
/etc/init.d/tomcat5 script. (I attach the file in case you are interested).

Regards,

Enrique

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkihyMsACgkQ9CaO5/Lv0PCjfACggbCbf7ERUoJX0aYw59bhY7Qx
TRMAn2pLYxOQQMOnKRwHPZlKdhir6XeS
=wjpc
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message