|
From: Leif M. <le...@ta...> - 2003-06-04 00:31:50
|
Don,
I am moving this over to the wrapper-user list. The CVS list is for
tracking changes to the source, and is rather boring for most people :-)
Don Sauer wrote:
> How can I set the TEMP or TMP directory within the wrapper.conf for my
> service running with wrapper? Currently, it sends a
> jar_cachexxxx.tmp to %TMP% within windows and causes a conflict with
> another program, I can get the conflict to go away if I manually set
> the TMP directory to something else but I don't want to change it
> manually if I can change it within the conf file
The Wrapper does not directly do anything with the temp directory and
thus, does not have such a setting.
What JVM and application are you using? I have never noticed a JVM
doing something like this. Most likely this is a function of the Java
application that you are running.
If it is indeed using the TMP variable to access the location of the
directory,
then this value should be able to be set by setting a property when the JVM
is launched. This is done by adding a property like the following to the
wrapper.conf file:
wrapper.java.additional.1=-DTMP=%TMP%
or
wrapper.java.additional.1=-DTMP=../myapptmp/
Most likely though, the application has a different property name that
it is using to accept the location of the path.
You can also override the value of the actual environment variable within
the scope of the Wrapper and its child processes (thus, the JVM) by
setting its value within the wrapper.conf as follows:
set.TMP=../myapptmp/
If neither of these helped, send me the information about your application
and JVM vendor/version along with your wrapper.conf file and I'll try to
come
up with a more precise answer for you.
If you found the product and support useful, please think about supporting
the project: http://wrapper.tanukisoftware.org/doc/english/donate.html
Cheers,
Leif
|