Thread: [Beepcore-java-users] beepd dies on user logout
Status: Beta
Brought to you by:
huston
From: Andrew N. <an...@ec...> - 2002-09-09 12:58:04
Attachments:
smime.p7s
|
Ok. I've got a bit of an odd problem I was wondering if anybody else has seen. I'm developing a server using beepcore. Whenever I start the server, and then logout, it terminates. I even use the nohup command and that still doesn't stop it. This even happens if I'm root. I reproduced this with the Beepd example as well. I even switched out the JDK's (1.3 for 1.4). Same problem. So I downloaded Jakarta Tomcat to see if it was a general Java problem. Tomcat does not exhibit this behaviour. As anybody seen this? -andy |
From: Ulf T. <d9...@dt...> - 2002-09-09 15:55:42
|
I suspect you are using Windows NT/2000/XP and are trying to run the server as a Windows NT service? If that is the case, this is a common behaviour for many Java applications. As soon as you try to run them as a service under Windows and then logout, the OS sends a signal to terminate the JVM. This has to be handled in some way - for example by using some sort of service wrapper that catches the signals from the OS before it reaches the JVM. A couple of wrappers available: JNT: http://www.eworksmart.com/JNT/ Javants (available in the JBoss CVS repository): http://www.jboss.org/ Wrapper: http://sourceforge.net/projects/wrapper/ Personally, I have only tried the Javants wrapper in combination with the JBoss EJB server. Although it required some modifications to work, it did what it should do. There are probably more wrappers available. /Ulf Tidstrand On Mon, 9 Sep 2002, Andrew Newton wrote: > Ok. I've got a bit of an odd problem I was wondering if anybody else > has seen. I'm developing a server using beepcore. Whenever I start the > server, and then logout, it terminates. I even use the nohup command > and that still doesn't stop it. This even happens if I'm root. > > I reproduced this with the Beepd example as well. > > I even switched out the JDK's (1.3 for 1.4). Same problem. So I > downloaded Jakarta Tomcat to see if it was a general Java problem. > Tomcat does not exhibit this behaviour. > > As anybody seen this? > > -andy > /Ulf -- More info: http://www.dtek.chalmers.se/~d97ulf/ "Hey, we're different!" - Jay Minor, Creator of the Amiga http://www.amiga.com/ |
From: Andrew N. <an...@ec...> - 2002-09-09 16:13:05
|
Ulf Tidstrand wrote: > I suspect you are using Windows NT/2000/XP and are trying to run the > server as a Windows NT service? Actually, this is on a Mandrake Linux 8.2 server in high security mode. It may be something to do with Mandrake's version of Bastille, but I couldn't find anything that looked wrong. -andy |
From: Ulf T. <d9...@dt...> - 2002-09-09 16:15:42
|
On Mon, 9 Sep 2002, Andrew Newton wrote: > Actually, this is on a Mandrake Linux 8.2 server in high security mode. > It may be something to do with Mandrake's version of Bastille, but I > couldn't find anything that looked wrong. OK - I don't have any experience of Mandrake (have used Debian mostly). But if anyone dares to run Beepd under Windows, my advice could possibly help... :) /Ulf |
From: Huston <hu...@us...> - 2002-09-09 19:56:17
|
> Ulf Tidstrand wrote: > > I suspect you are using Windows NT/2000/XP and are trying to run the > > server as a Windows NT service? > > Actually, this is on a Mandrake Linux 8.2 server in high security mode. > It may be something to do with Mandrake's version of Bastille, but I > couldn't find anything that looked wrong. I use debian and haven't seen any problems. I would try turning the logging level up to see if that gives any indication as to what is going wrong. If that doesn't help I will try to recreate (and fix) the problem if you give me the details. --Huston |
From: Andrew N. <an...@ec...> - 2002-09-09 21:22:30
Attachments:
smime.p7s
|
Huston wrote: > > I use debian and haven't seen any problems. I would try turning the logging > level up to see if that gives any indication as to what is going wrong. If > that doesn't help I will try to recreate (and fix) the problem if you give > me the details. Yeah, well it is the first time I've ever seen this is a java program. It has got something to do with a Bastille setting. I have a laptop running Mandrake 8.2 in lax security mode and I don't see this problem. However, I also don't see this problem with Jakarta Tomcat on the problem box. Go figure! Anyway, I'll look at turning the logging up. I guess that is done by setting a log service and then setting the verbosity up to high level? -andy |