-
1. Re: Avoid shutdown with CTRL-C?
chgrimm Oct 1, 2002 2:36 AM (in response to sebaseba)did you try to start jboss with nohup ?
we have been running jboss-2.4.6 / 2.4.8 on solaris 5.8
and there was never such a behaviour. -
2. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 6:47 AM (in response to sebaseba)Yes, we are using nohup.
This did fix another issue we had earlier (JBoss was shutting down when exiting the telnet session from which it was started), but not this one.
Which shell are you using? We are only getting the problem with the sh shell, no the csh or zsh shell. Unfortunately, we have to stick with sh :-(
Any other thoughts?
Thanks,
Sebastian -
3. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 6:49 AM (in response to sebaseba)Yes, we are using nohup.
This did fix another issue we had earlier (JBoss was shutting down when exiting the telnet session from which it was started), but not this one.
Which shell are you using? We are only getting the problem with the sh shell, no the csh or zsh shell. Unfortunately, we have to stick with sh :-(
Any other thoughts?
Thanks,
Sebastian -
4. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 6:55 AM (in response to sebaseba)Yes, we are using nohup.
This did fix another issue we had earlier (JBoss was shutting down when exiting the telnet session from which it was started), but not this one.
Which shell are you using? We are only getting the problem with the sh shell, no the csh or zsh shell. Unfortunately, we have to stick with sh :-(
Any other thoughts?
Thanks,
Sebastian -
5. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 6:56 AM (in response to sebaseba)Yes, we are using nohup.
This did fix another issue we had earlier (JBoss was shutting down when exiting the telnet session from which it was started), but not this one.
Which shell are you using? We are only getting the problem with the sh shell, no the csh or zsh shell. Unfortunately, we have to stick with sh.
Any other thoughts?
Thanks,
Sebastian -
6. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 7:05 AM (in response to sebaseba)Yes, we are using nohup.
This did fix another issue we had earlier (JBoss was shutting down when exiting the telnet session from which it was started), but not this one.
Which shell are you using? We are only getting the problem with the sh shell, no the csh or zsh shell. Unfortunately, we have to stick with sh.
Any other thoughts?
Thanks,
Sebastian -
7. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 1, 2002 10:28 AM (in response to sebaseba)Feeling a bit stupid for posting the same thing five times ... my posts only showed up after a couple of hours, but I thought my browser had some stupid caching issue :-(
/Sebastian -
8. Re: Avoid shutdown with CTRL-C?
sixpack Oct 1, 2002 2:08 PM (in response to sebaseba)Strange behaviour, but I also had a similar problem on Solaris using a different appserver some years ago. If all else fails you can use "screen". This tool should be available by default on most Linux Systems. For Solaris there is a precompiled package available on http://www.sunfreeware.com/ see the man page for usage instructions. It's quite simple but very helpful.
-
9. Re: Avoid shutdown with CTRL-C?
abcd Oct 3, 2002 8:18 AM (in response to sebaseba)use this in the last line in run.sh java $HOTSPOT $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@> 2>&1 < /dev/null &
-
10. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 7, 2002 7:19 AM (in response to sebaseba)Thanks for the suggestion - does not seem to make a difference though :-(
/Sebastian -
11. Re: Avoid shutdown with CTRL-C?
sebaseba Oct 7, 2002 7:20 AM (in response to sebaseba)The screen utility looks useful but is no good for us since customers expect a standard Solaris interface (we bundle JBoss with a product).
Any other ideas (apart from hacking the JBoss source)?
/Sebastian -
12. Re: Avoid shutdown with CTRL-C?
juha Oct 7, 2002 2:09 PM (in response to sebaseba)hack the source :)
grep addShutdownHook and try using a null runnable there as opposed to the shutdown sequence and see if that helps? -
13. Re: Avoid shutdown with CTRL-C?
juha Oct 7, 2002 2:11 PM (in response to sebaseba)actually that probably won't help if your VM is still trapping that signal... now you just end up doing an unclean shutdown... :)
-
14. Re: Avoid shutdown with CTRL-C?
chrigri Oct 8, 2002 5:07 AM (in response to sebaseba)Try using the flagg "-Xrs" when starting the java VM.
On Windows this will tell the VM to ignore ctrl-c from the console.
This works nice when we run jboss as a service under win2k.
--
Christer