|
From: Leif M. <le...@ta...> - 2006-10-12 15:30:06
|
Eva,
Set the following property to enable the command file feature (see
the docs)
http://wrapper.tanukisoftware.org/doc/english/prop-commandfile.html
wrapper.commandfile=./myapp.command
Now create a file myapp.command.restart which contains a single line of
text "RESTART", without the quotes.
All you have to do to cause the wrapper to restart is to run:
copy myapp.command.restart myapp.command
The wrapper will detect it within a few seconds and restart the JVM.
Put the copy command into a batch file called restart.bat
Next step is to make this copy process automatic. Windows has a
cron job like scheduler built in called schtasks. You can set your restart
batch file to run at a specific time as follows:
schtasks /Create /SC DAILY /ST 05:00:00 /tn myapprestart /tr
d:\Myapp\bin\restart.bat
This will delete the job:
schtasks /Delete /tn myapprestart
This will list all available jobs:
schtasks /Query
Hope this helps,
Cheers,
Leif
Eva Lim wrote:
> Hi Leif,
>
> I see, my application is running on Windows XP.
>
> Thanks for your advice :)
>
>
> */Leif Mortenson <le...@ta...>/* wrote:
>
> Eva,
> That is not something that the wrapper supports directly. What
> platform
> are you
> running on? There are ways to do this on the various platforms.
>
> Cheers,
> Leif
>
> Eva Lim wrote:
> > Hi,
> >
> > Am I able to schedule the Java Service Wrapper to restart the
> JVM and
> > my application at a particular time of the day?
> >
> > Many thanks for your help!
> >
> >
> > Cheers,
> > Angela
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|