1 Reply Latest reply on Aug 2, 2003 6:56 AM by jonlee

    Start JBoss in Linux daemon

    jbossfan

      Dear all,

      what i did before is to use a bash file to restart MySQL, TomCat and JBoss so that my application got restarted. In order to let it running after I log off, I used "nohup". it works fine. However, as "nohup" exports its own log file -- nohup.out, it could not export as other log file names like JBoss_restart_01082003.log which I want to get. I aware I could restart MySQL and TomCat as daemons, therefore, im trying to find something like jbossdaemonstart.sh in JBoss.. pity as you know, it is not there..

      any comment is appreciated

      with best wishes

      jbossfan..

        • 1. Re: Start JBoss in Linux daemon
          jonlee

          You can try the jboss_init_redhat.sh script and modify it to pipe the output to a log file. You'd need to do the necessary shell programming work to get the file naming. At the end of the day though, you are doing nothing more complex than:
          LOG_FILE=JBoss_restart_`date +%m%d%Y`
          ((./run.sh 2>&1) > ${LOG_FILE}) &