Genesis II Wiki
|July 20, 2019, at 08:40 PM||Genesis II Wiki / Main / InstallGenesisIIAsAWindowsService|
Install Genesis II as a Windows Service
In order to install a Genesis II container as a Windows Service, we must use the Java Service Wrapper.It can also be installed as a unix daemon, but this how to will focus on Windows.
There are two ways to integrate the Java Service Wrapper for use with Genesis II.
Part 3 contains information for my JBoss version that prepares the host computer for use with GeniiNet.
Integration by JBoss
Install Genesis II on your system. We are assuming for this tutorial that we will install Genesis II to C:\Genesis, and JBoss will be installed within that.
Follow the directions for integrating the Wrapper with JBoss. I followed these directions for Windows and got the wrapper working perfectly. For the linux version, I had an issue with using the JBoss version that they did.
Next, we must customize the wrapper.conf configuration file to meet Genesis II's needs. Essentially, we will be copying the information from Genesis II's runContainer.bat into the configuration file for the Java Service Wrapper.
Here are a list of all of the properties that need to be changed or added if they do not exist by default:
The process_priority setting is important to set on shared computers. If you want the container to be secondary to any other processes, then set it to LOW. For a full description, see its property page.
Here is the full list of configurable properties for wrapper.conf.
Once configured, you may now install Genesis II as a service. Per the Java Service Wrapper guide, it is a very good idea to test your container before actually installing a service.
Run JBoss.bat from the bin directory of your JBoss installation. If you find no error messages, you may shut it down and proceed to installing as a service.
Installation of JBoss did not work properly.
You may also check the logs directory of your JBoss installation, which may contain helpful information.
Installing the Service
Run InstallApp-NT.bat from the bin directory of your JBoss installation. You must have administrative privileges on that machine to install a service.
Run UninstallApp-NT.bat from the bin directory of your JBoss installation. To check whether or not the removal succeeded, run "services.msc" and make sure that there is no longer a Genesis II service listed.
For use with linux installations, use the jboss program in the bin directory of your JBoss installation. You may test it by running it from the console: "./jboss console" or you may set it to run as a daemon: "./jboss start". Type "./jboss" for a list of all acceptable usages.
Integration by Coding
Instructions for this integration technique are located here. It is preferable to use this method, if possible, because it does not require a middleware application, such as JBoss.
GeniiNet Installer Package
You may download a copy of the installer here. It is meant for use with a usb key. Running the installer bat will install a copy of Genesis II on the machine.
I wrote a small perl script that will take the list of ip's generated by the installer and will turn it into a Genesis II script. The output script will attach each host to GeniiNet and will set security on it.
|Validate the XHTML and CSS of this page.||Page last modified on October 06, 2011, at 02:23 PM||Edit History Print Recent Changes|
Powered by PmWiki