Geronimo
  1. Geronimo
  2. GERONIMO-693

Provide Java Service Wrapper scripts in bin directory

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.0-M4, 1.0, 1.1
    • Fix Version/s: 1.1.x
    • Component/s: startup/shutdown, usability
    • Labels:
      None
    • Environment:

      Windows, Linux, Mac OS X

      Description

      It would be nice to have obvious startup.sh and startup.bat scripts in the bin directory so that the user doesn't need to look at the README file to figure out how to start the server. (java -jar bin/server.jar isn't hard – it's just not quite as brainless as a script called "startup").

      1. wrapper.tar.gz
        1 kB
        Aldrin Leal

        Issue Links

          Activity

          Hide
          Jeff Genender added a comment -

          Do not forget the -Djava.endorsed.dirs=lib/endorsed to the java command line in these scripts or Tomcat will not run.

          Show
          Jeff Genender added a comment - Do not forget the -Djava.endorsed.dirs=lib/endorsed to the java command line in these scripts or Tomcat will not run.
          Hide
          Bruce Snyder added a comment -

          I just checked in the beginnings of a startup shell script in the scripts directory. I need to figure out how to copy it into the assembly/target/geronimo-1.0-SNAPSHOT/bin/ directory during the build process.

          Show
          Bruce Snyder added a comment - I just checked in the beginnings of a startup shell script in the scripts directory. I need to figure out how to copy it into the assembly/target/geronimo-1.0-SNAPSHOT/bin/ directory during the build process.
          Hide
          David Jencks added a comment -

          I talked to Jason van Zyl who strongly recommends Java Service Wrappers which provides scripts for numerous platfomrs and various kinds of daemon restart functionality. See http://wrapper.tanukisoftware.org/doc/english/history.html

          Jason uses it with continuum.

          I suggest we include all the JSW stuff in scripts, including a subdirectory for the JSW jar(s)

          Show
          David Jencks added a comment - I talked to Jason van Zyl who strongly recommends Java Service Wrappers which provides scripts for numerous platfomrs and various kinds of daemon restart functionality. See http://wrapper.tanukisoftware.org/doc/english/history.html Jason uses it with continuum. I suggest we include all the JSW stuff in scripts, including a subdirectory for the JSW jar(s)
          Hide
          Bruce Snyder added a comment -

          I agree, David. I was already looking at that tool.

          Show
          Bruce Snyder added a comment - I agree, David. I was already looking at that tool.
          Hide
          Aldrin Leal added a comment -

          Here's a sample wrapper.conf along with batch files to config geronimo as a windows service, . tested under Gluecode-SE.

          place wrapper.conf in a conf directory. Don't forget to add the native libraries to the lib dir, as well as wrapper.jar. wrapper.exe goes to bin too.

          And to test if everything is ok, run wrapper.exe -c ..\conf\wrapper.conf in the bin directory.

          – Aldrin Leal, <aldrin@leal.eng.br>

          Show
          Aldrin Leal added a comment - Here's a sample wrapper.conf along with batch files to config geronimo as a windows service, . tested under Gluecode-SE. place wrapper.conf in a conf directory. Don't forget to add the native libraries to the lib dir, as well as wrapper.jar. wrapper.exe goes to bin too. And to test if everything is ok, run wrapper.exe -c ..\conf\wrapper.conf in the bin directory. – Aldrin Leal, <aldrin@leal.eng.br>
          Hide
          John Sisson added a comment -

          Another wrapper conf file has been submitted by Ted Haynes on the user list. http://marc.theaimsgroup.com/?t=114305634300002&r=1&w=2 .

          We should look into generating the file as part of the build after we have moved the build to M2.

          Show
          John Sisson added a comment - Another wrapper conf file has been submitted by Ted Haynes on the user list. http://marc.theaimsgroup.com/?t=114305634300002&r=1&w=2 . We should look into generating the file as part of the build after we have moved the build to M2.
          Hide
          Jason Dillon added a comment -

          I really don't like to include all of the files that JWS has, a native bin for each platform, plus a set of native libraries, and then a bunch of scripts for windows:

          bin/ (1.2M)

          • InstallTestWrapper-NT.bat
          • PauseTestWrapper-NT.bat
          • ResumeTestWrapper-NT.bat
          • StartTestWrapper-NT.bat
          • StopTestWrapper-NT.bat
          • TestWrapper.bat
          • TestWrapperNoWrapper.bat
          • UninstallTestWrapper-NT.bat
          • testwrapper
          • wrapper-linux-ppc-64
          • wrapper-linux-x86-32
          • wrapper-linux-x86-64
          • wrapper-macosx-ppc-32
          • wrapper-macosx-universal-32
          • wrapper-solaris-sparc-32
          • wrapper-solaris-sparc-64
          • wrapper-solaris-x86-32
          • wrapper-windows-x86-32.exe

          lib/ (356K)

          • libwrapper-linux-ppc-64.so
          • libwrapper-linux-x86-32.so
          • libwrapper-linux-x86-64.so
          • libwrapper-macosx-ppc-32.jnilib
          • libwrapper-macosx-universal-32.jnilib
          • libwrapper-solaris-sparc-32.so
          • libwrapper-solaris-sparc-64.so
          • libwrapper-solaris-x86-32.so
          • wrapper-windows-x86-32.dll
          • wrapper.jar
          • wrappertest.jar
          Show
          Jason Dillon added a comment - I really don't like to include all of the files that JWS has, a native bin for each platform, plus a set of native libraries, and then a bunch of scripts for windows: bin/ (1.2M) InstallTestWrapper-NT.bat PauseTestWrapper-NT.bat ResumeTestWrapper-NT.bat StartTestWrapper-NT.bat StopTestWrapper-NT.bat TestWrapper.bat TestWrapperNoWrapper.bat UninstallTestWrapper-NT.bat testwrapper wrapper-linux-ppc-64 wrapper-linux-x86-32 wrapper-linux-x86-64 wrapper-macosx-ppc-32 wrapper-macosx-universal-32 wrapper-solaris-sparc-32 wrapper-solaris-sparc-64 wrapper-solaris-x86-32 wrapper-windows-x86-32.exe lib/ (356K) libwrapper-linux-ppc-64.so libwrapper-linux-x86-32.so libwrapper-linux-x86-64.so libwrapper-macosx-ppc-32.jnilib libwrapper-macosx-universal-32.jnilib libwrapper-solaris-sparc-32.so libwrapper-solaris-sparc-64.so libwrapper-solaris-x86-32.so wrapper-windows-x86-32.dll wrapper.jar wrappertest.jar
          Hide
          Jason Dillon added a comment -

          I also don't like that it does not take a jar and pull classpath from its manifest, which means we'd have to duplicate the classpath arguments or write a custom plugin to generate its config from the server.jar

          Show
          Jason Dillon added a comment - I also don't like that it does not take a jar and pull classpath from its manifest, which means we'd have to duplicate the classpath arguments or write a custom plugin to generate its config from the server.jar

            People

            • Assignee:
              John Sisson
              Reporter:
              Erin Mulder
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development