|
From: Christian M. <chr...@ta...> - 2012-05-30 08:03:01
|
Hello Dave, thank you for your mail. 1) If you set the property IGNORE_SIGNALS=true in the script, the script will tell the Wrapper to shutdown by deleting its anchor file. The Wrapper should acknowledge the removal of the file and initiate the shutdown within a few seconds, however. Is there any indication in your conf file on what is delaying the shutdown so long? 2) please send me the 2 scripts you are using. I would like to make sure the property "IGNORE_SIGNALS=true" is set correctly, because if it is set, the Wrapper will not raise a SIGTERM to the Wrapper, but using the anchorfile. I assume that the script was running into a timeout and your OS simply continued with the shutdown, killing your application forcibly. It should have been started after the system got back up however, therefore I would also see the value of APP_NAME in your script. APP_NAME is being used as application name for in the init.d folder, e.g. /etc/init.d/myapp Also what distribution are you running on? Cheers, Christian On Wed, May 30, 2012 at 11:26 AM, David Hoffer <dho...@gm...> wrote: > On Linux I've observed a few problems: > > Java Service Wrapper Professional Edition 32-bit 3.5.13 > Linux 2.6.18-028stab099.3 i686 > > 1. Some time ago I was advised to set IGNORE_SIGNALS=true so that > stray TERM signals did not kill my app. This seems to have solved > that but caused another problem in that the stop command now takes a > long time to shut down the app, is there a way to regain the fast app > shutdown behavior? > > 2. I'm not sure if it's related to the above change but I have two > apps running on this same server both configured to start the apps > when the OS starts (used install command to configure this). However > the apps are not restarting when the system boots. Here is a resent > log. > > STATUS | wrapper | 2012/05/27 04:04:49 | TERM trapped, but ignored. > STATUS | wrapper | 2012/05/29 13:38:49 | --> Wrapper Started as Daemon > STATUS | wrapper | 2012/05/29 13:38:49 | Java Service Wrapper > Professional Edition 32-bit 3.5.13 > STATUS | wrapper | 2012/05/29 13:38:49 | Copyright (C) 1999-2011 > Tanuki Software, Ltd. All Rights Reserved. > STATUS | wrapper | 2012/05/29 13:38:49 | > http://wrapper.tanukisoftware.com > > I believe 2012/05/27 04:04:49 is when the system was rebooted for > maintenance, 2012/05/29 13:38:49 is when I manually started the app > because it was not running. It seems that since I've ignored > TERM...it didn't shut down...and therefore it didn't restart??? > > How can I configure JSW so that it will restart the app when the system > boots? > > In addition what I really want is to configure JSW so that it will > guarantee that the apps are always running if the OS is, I've had too > many instances where the apps aren't running for one reason or > another. (The slow shutdown in #1 is a minor issue compared to the > others.) > > Thanks, > -Dave > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |