db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Wareham" <cware...@visitlondon.com>
Subject Re: Derby init script for Linux / Unix
Date Tue, 09 Sep 2008 16:04:09 GMT
Chris Wareham wrote:
> Hi,
> I've searched the FAQ, wiki and Nabble's archive for this list but not
> found an example init script for running Derby's Network Server. I have
> put together a basic init script, but it has one problem which I am
> hoping someone on the list can solve for me. The script works fine when
> the server is rebooted, but if I login via ssh and restart Derby with
> the init script, my shell hangs when I logout. I guess that even though
> I run the init script as root, the Derby process is somehow associated
> with my login session and prevents me from successfully logging out. I
> don't want to use nohup, as it leaves an annoying log file laying around
> - there must be a better solution!

It's possible this is related to the old SSH hang-on-exit bug:


However, adding the following to my shell config results in the Derby
process terminating when I close my remote session:

shopt -s huponexit
Chris Wareham
Senior Software Engineer
Visit London Ltd
6th floor,
2 More London Riverside, London SE1 2RR
Tel:  +44 (0)20 7234 5848
Fax: +44 (0)20 7234 5753

       Save the date for the Visit London Awards 2008! 
      Thursday 27th November, Royal Albert Hall.

'Visit London Limited' is registered in England under No.761149;
Registered Office: Visit London, 2 More London Riverside, London SE1 2RR.

Visit London is the official visitor organisation for London. Visit London is partly funded
by Partnership, the Mayor's London Development Agency and London Councils.
The information contained in this e-mail is confidential and intended for the named recipient(s)
only.  If you have received it in error, please notify the sender immediately and then delete
the message.  If you are not the intended recipient, you must not use, disclose, copy or distribute
this email. The views expressed in this e-mail are those of the individual and not of Visit
London. We reserve the right to read and monitor any email or attachment entering or leaving
our systems without prior notice.
  Please don't print this e-mail unless you really need to.

View raw message