|
From: Leif M. <lei...@ta...> - 2009-10-01 08:15:12
|
Vadim, This is possible with the Professional Edition of the Java Service Wrapper using the following configuration: wrapper.event.jvm_prelaunch.command.argv.1=/usr/bin/mycleanup wrapper.event.jvm_prelaunch.command.argv.2=parameter1 wrapper.event.jvm_prelaunch.command.block=TRUE wrapper.event.jvm_prelaunch.command.block.timeout=5 The block properties will tell the Wrapper to wait until the command has completed or timeout after the specified amount of time. There properties are described in more detail here: http://wrapper.tanukisoftware.org/doc/english/props-event.html#command The full list of possible events when commands can be executed is here: http://wrapper.tanukisoftware.org/doc/english/props-event.html#events We would be happy to provide you with a trial license of the Professional edition if you wish to test this out. http://wrapper.tanukisoftware.org/doc/english/download.jsp Sincerely, Leif Mortenson Tanuki Software, Ltd. On Thu, Oct 1, 2009 at 3:44 AM, Vadim Fattakhov <vfa...@da...> wrote: > I have third party application that you the wrapper. I need to run some > script before the Java application start/restart after failure. How should I > configure the wrapper? Can you recommend me any solutions? > > > > Thank you, > > VF |