Install As System Service
This document explains how to configure QuickBuild programs (server, build agent, and user agent) to run as system service.
On Windows Platform
-
If necessary, edit file <QuickBuild server (or agent) install dir>/conf/wrapper.conf to specify service account via below properties:
wrapper.ntservice.account=
wrapper.ntservice.password=The service will run under local system account if these properties are not specified.
-
If necessary, edit above file to specify desired display name and description of the service via property wrapper.displayname and wrapper.description .
warningMake sure to modify these properties to use different service name and description if you want to install multiple QuickBuild servers or agents in the same machine.
-
Open a command prompt window and switch to folder <QuickBuild server (or agent) install dir>/bin . On Windows system with UAC enabled, you will need to open the command prompt window as Administrator.
-
Run command server.bat install (or agent.bat install ) from command prompt window, and a Windows service with the name QuickBuild Server will be installed.
-
If you want to uninstall the service later, just run command server.bat remove (or agent.bat remove ) in the command prompt window (make sure the command prompt window is opened with administrative right on Windows system with UAC enabled).
On Unix family Platforms (including MacOS X and Linux)
-
Open a command shell and switch to folder <QuickBuild server (or agent) install dir>/bin.
-
Edit file server.sh (or agent.sh ) to uncomment below line to specify the OS user to run the service as. Make sure the user has full permission against QuickBuild installation directory including all sub directories and files.
#RUN_AS_USER=
The service will be run under root account if this line is commented out.
-
If necessary, edit above file to specify desired display name and description of the service via property APP_NAME and APP_LONG_NAME .
warningMake sure to modify these properties to use different service name and description if you want to install multiple QuickBuild servers or agents in the same machine.
-
Run command server.sh install (or agent.sh install) to install the service.
-
If you want to uninstall the service later, just run command server.sh remove (or agent.sh remove) in the command shell.