The job manager batch mode is provided by the gsserver.exe service program.
It enables the job manager to be started in a command line or as a Windows NT service.
The command line options are as follows:
Setup of an automatic start-up service
gsserver -a "<external service name>" "<internal service name>" [-depends:[none|all]] <parameters>
Setup of a manual start-up service
gsserver -i "<external service name>" "<internal service name>" [-depends:[none|all]] <parameters>
Start from command line
gsserver -c <parameters>
Start from command line without console
gsserver -q <parameters>
All command line parameters can be specified for a service:
|
For example, to install a service with connection parameters specified in GTS.ini (manual definition of dependencies):
C:\> gsserver -a "Job Manager - GTS" "gsserverGTS" GTS.ini
Adelia Job Manager v2.0.0.1
The following middleware services have been found:
1: Adelia - Middleware
Enter index for service dependency (return=no dependency):
The following database services have been found:
1: DB2 - DB2
2: MSSQLSERVER
3: OracleServiceBDCADEL
4: OracleServicePS00JCV
Enter index for service dependency (return=no dependency): 2
==> adding MSSQLSERVER (MSSQLSERVER) to the dependencies list...
Job Manager - GTS installed.
C:\> _
The same installation with automatic management of dependencies (a bad choice in this case as too many dependencies are established):
C:\> gsserver -a "Job Manager - GTS" "gsserverGTS" -depends:all GTS.ini
Adelia Job Manager v2.0.0.1
==> adding AdeliaDaemon (Adelia - Middleware) to the dependencies list...
==> adding DB2 (DB2 - DB2) to the dependencies list...
==> adding MSSQLSERVER (MSSQLSERVER) to the dependencies list...
==> adding OracleServiceBDCADEL (OracleServiceBDCADEL) to the dependencies list...
==> adding OracleServicePS00JCV (OracleServicePS00JCV) to the dependencies list...
Job Manager - GTS installed.
C:\> _
To start a local manager on the SQL Server JM database from a command line:
C:\> gsserver -c "-dSQL Server/GTS" -usa -psa_password
Job manager listening (3916)...
Note: it is not possible to start two job managers with the same name (host machine name by default) for a manager database.