Show Table of Contents
4.6. Configuring the Server as a Windows Service
The
rhq-server.bat script has an installation option that installs the script as a Windows service.
- Set the environment variable for the user to run the Windows service as.Every Windows service has to run as some system user. There are two environment variables in the
rhq-server.batscript that set the user to use:RHQ_SERVER_RUN_ASsets any Windows user to be the JBoss ON server user. The username given here must be in the standard Windows format, DOMAIN\user, such asEXAMPLEDOMAIN\jsmith.RHQ_SERVER_RUN_AS_MEsets the server to run as whoever the current user is. This overrides theRHQ_SERVER_RUN_AS, if both as set.
If neither environment variable is set, then the JBoss ON server runs as the system account. - Run the
rhq-server.batscript with theinstalloption to set up the service. This prompts for the password of whatever user account is used for the JBoss ON service.serverRoot\bin\rhq-server.bat install

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.