From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Wakeman, Lindsay" Newsgroups: gmane.os.tru64.managers Subject: Summary: tomcat startup Date: Fri, 27 Aug 2004 15:53:53 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <5D6AD0E24C704645A0F1F1431B9F216106FCAE62@nt-lonex2.bl.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1093618503 15235 80.91.224.253 (27 Aug 2004 14:55:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 14:55:03 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Aug 27 16:54:43 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1C0i7m-0003kb-00 for ; Fri, 27 Aug 2004 16:54:42 +0200 Original-Received: (qmail 9378 invoked by uid 5); 27 Aug 2004 14:54:32 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9363 invoked by uid 49501); 27 Aug 2004 14:54:31 -0000 Original-Received: from Lindsay.Wakeman@bl.uk by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.675916 secs); 27 Aug 2004 14:54:31 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 27 Aug 2004 14:54:30 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3400I8K1ESIW@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 27 Aug 2004 10:54:29 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I3400K021EOE0@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 27 Aug 2004 10:54:25 -0400 (EDT) Original-Received: from nt-lonex2.bl.uk (nt-lonex2.bl.uk [193.60.210.61]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3400DD81EN9O@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 27 Aug 2004 10:54:24 -0400 (EDT) Original-Received: by nt-lonex2.bl.uk with Internet Mail Service (5.5.2657.72) id ; Fri, 27 Aug 2004 15:53:58 +0100 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2657.72) Xref: main.gmane.org gmane.os.tru64.managers:7486 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7486 Hi Folks Well it's taken a long time but I have a working solution - thanks to lots of help from this list. Special thanks go to Oisin McGuinness, Tom Swigg and Eric Sisson for their perseverence! However, it was Eric who gave me the solution after he'd read the correspondence. Since init insists on issuing a HUP to its children, Eric came up with the idea of indirectly calling the tomcat startup using at(1 ) so that init cannot reach it. I have tested this and can confirm that it too works for me. Here's the essence of the init script for the startup case : ___________________________________________________________________________ case "$1" in 'start') /bin/at now + 1 minute << END nohup su tomcat -c "$CATALINA_HOME/bin/startup.sh start > /tmp/tomcat_start.log" 2>&1 & END ;; 'stop') - *** usual stop stuff here *** etc. ___________________________________________________________________________ I can't believe how much time I've spent on this! Eric - and all who chipped in - thank you. This is a great list. I wish we weren't migrating off Tru64.... :-( Lindsay P.S. Just off to check that tomcat really is still running.. ;-) Lindsay Wakeman Senior Analyst/Programmer, Applications Development South The British Library lindsay.wakeman@bl.uk ************************************************************************** Experience the British Library online at www.bl.uk Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook ************************************************************************* The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the postmaster@bl.uk : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. *************************************************************************