-
Apr 8th, 2010, 03:10 AM
#1
Initialization scripts (Apache & Tomcat) update
Hi guys,
is there any possible way of updating Apache / Tomcat initialization scripts on already running deployment? Sometimes I need to add some extra options to these scripts and the only ways I see is either to start new deployment with the updated scripts, or do the modification (which should be done by script) manually after each restart / redeployment.
Thanks in advance,
Pavel
-
Apr 24th, 2010, 02:46 AM
#2
Hello Pavel,
Currently it's not possible to run scripts on already running instances. The configuration scripts are meant to be run just once when an instance is started.
I'm curious to know the use case behind the need to run initialization scripts once the deployment is running.
P.S. You can, however, update JVM options on a running deployment, if you need to.
Thank you,
-
Apr 26th, 2010, 01:58 AM
#3
Hi,
first, I didn't write I want to run my script, I wrote I want to update my script. However the statement "are meant to be run just once" does not match with reality. I mean maybe they are meant to be run once, but they are run every time TC is restarted (read below), which is fine for me, but I need to update this script sometimes.
The usecase is simple. Script is run every time the TC container is started / restarted. This means that everytime I redeploy update of my application, server.xml file is recreated and my script is re-run to proceed custom changes in server.xml. But sometimes a set of applied changes need to be updated together with the new version of app. I think this is quite common situation.
I hope my explanation is clear enough.
Thanks,
Pavel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules