Summary: tomcat startup

From: Wakeman, Lindsay (Lindsay.Wakeman_at_bl.uk)
Date: 08/27/04

  • Next message: Rich Glazier: "seamless network transfer"
    Date: Fri, 27 Aug 2004 15:53:53 +0100
    To: "'tru64-unix-managers@ornl.gov'" <tru64-unix-managers@ornl.gov>
    
    

     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.

    *************************************************************************


  • Next message: Rich Glazier: "seamless network transfer"