0 Replies Latest reply on Jul 31, 2002 5:20 PM by Jason Essington

    Starting JBoss at system startup on OS X

    Jason Essington Newbie

      I have a shiny new xserve that I am trying to get JBoss to start up on when the system boots. I have created my startup script, but am wondering if anyone with more OS X - Server experience than myself would tell me if I am doing anything drastically wrong in my script.

      note, this iteration does work (at least the server starts up as user jboss and every thing seems to work)



      . /etc/rc.common

      ConsoleMessage "Starting JBoss application server"

      sudo -u jboss /Library/jboss/bin/run.sh > /dev/null &

      ConsoleMessage "Stopping JBoss application server"

      sudo -u jboss /Library/jboss/bin/shutdown.sh -S > /dev/null


      RunService "$1"


      and my StartupParameters.plist file is prety much a direct copy of others found in other startup scripts


      Description = "JBoss application server";
      Provides = ("JBoss");
      Requires = ("PostgreSQL");
      Preference = "Late";
      Messages =
      start = "Starting JBoss";
      stop = "Stopping JBoss";

      I forced the dependency on PostgreSQL since I use a PostgreSQL data source in my application.

      So does anyone with MacOS X Server experience see anything that should be changed?

      any feedback would be appreciated

      aka new Xserve admin :-)