...
- Edit the
.\bin\jobscheduler_agent_4441.cmd
. Find the environment variables of the JobScheduler Universal Agent.
- All environment variables are commented out in the instance script, i.e. the default values are used.
If you want to set an environment variable then the line with the variable has to be uncommented.
SCHEDULER_HOME
This variable has to point to the installation path of the JobScheduler Universal Agent (e.g.
C:\Program Files\sos-berlin.com\jobscheduler_agent
).
This variable is only required if this instance script is moved outside the folder where the start script.\bin\jobscheduler_agent.cmd
is located.
There is no reason on Windows to move this script to a different folder so this variable can normally remain unused.SCHEDULER_HTTP_PORT
The port of the Agent. It has to be the same value as the suffix in the instance script basename. In this example
Code Block set /a SCHEDULER_HTTP_PORT=4441
This option can be also used for indicating which network interfaces the JobScheduler Agent should listen to if you specify a hostname or ip address in addition.
Code Block set /a SCHEDULER_HTTP_PORT=localhost:4441
SCHEDULER_HTTPS_PORT
The https port of the Agent.
Code Block set /a SCHEDULER_HTTPS_PORT=40441
This option can be also used for indicating which network interfaces the JobScheduler Agent should listen to if you specify a hostname or ip address in addition.
Code Block set /a SCHEDULER_HTTPS_PORT=123.456.789:40441
SCHEDULER_DATA
Set the directory where the JobScheduler Agent has the configuration, logs, etc.
This directory must be unique for each instance of the JobScheduler Agent. The default isfollowing will create the directory alongside a directory created by the Universal Agent Windows Installer:
Code Block SCHEDULER_HOME/var_SCHEDULER_HTTP_PORTC:\ProgramData\sos-berlin.com\jobscheduler\agent_4441
Make sure that the JobScheduler Agent user has read/write permissions.
SCHEDULER_LOG_DIR
Set the directory where the JobScheduler Agent log files are created. The default location is
SCHEDULER_HOME
/logs.
It is recommended to use the same log directory for all instances.
If the installation path of the JobScheduler Agent is located inC:\Program Files
then due to the required permissions it is recommended to set this variable to a different folder, e.g.Code Block set SCHEDULER_LOG_DIR=C:\ProgramData\sos-berlin.com\jobscheduler\agent\logs
Note The JobScheduler Agent is installed as a service. Make sure that the service account has read and write permissions in
SCHEDULER_LOG_DIR
.
If you use the sameSCHEDULER_LOG_DIR
for all instances then make sure that all service accounts have read and write permissions.SCHEDULER_PID_FILE_DIR
Set the directory where the JobScheduler Agent pid file is created. The default location is
SCHEDULER_LOG_DIR.
Note The JobScheduler Agent is installed as a service. Make sure that the service account has read and write permissions in
SCHEDULER_PID_FILE_DIR
.
If you use the sameSCHEDULER_PID_FILE_DIR
for all instances then make sure that all service accounts have read and write permissions.SCHEDULER_WORK_DIR
The default working directory of the JobScheduler Agent is
SCHEDULER_HOME
. You can set a different working directory, e.g.%USERPROFILE%
.create the service with the instance script
Code Block > .\bin\jobscheduler_agent_4441.cmd install-service
- The service runs now with the local system account. Specify a different user account for the service if required.
- Open the Windows service panel for the service name
SOS JobScheduler Agent -port=4441
and navigate to the tab "Log On", choose "This account" and add the account with the syntaxDOMAIN\USER
and the corresponding password.
- Open the Windows service panel for the service name
...