Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
Usage: agent.sh command [options] [switches]
command:
start [options]
start-container [options]
stop [options]
restart [options]
status [options]
cancel [options]
cert [cert-options] | see https://kb.sos-berlin.com/x/jLbAAw
options:
--http-port=<[interface:]port> | http network interface and port, default: 4445
--https-port=<[interface:]port> | https network interface and port, default:
--data-directory=<directory> | default: /var/sos-berlin.com/js7/agent/var_4445
--config-directory=<directory> | default: /var/sos-berlin.com/js7/agent/var_4445/config
--sigkill-delay=<seconds> | send SIGTERM and delayed SIGKILL signal, default: 3
--timeout=<seconds> | timeout for terminating jobs on Agent stop
--java-options=<java options> | default: -Xms100m -Dfile.encoding=UTF-8; see https://kb.sos-berlin.com/x/uYo7B
switches:
-c | --curl | use curl instead of Java http client
see https://kb.sos-berlin.com/x/ZqrAAw for more information. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
Usage: agent.cmd command [options] [switches] command: start [options] start-container [options] stop [options] restart [options] status [options] cancel [options] cert [cert-options] | see https://kb.sos-berlin.com/x/jLbAAw options: --http-port=<[interface:]port> | http network interface and port, default: 4445 --https-port=<[interface:]port> | https network interface and port, default: --data-directory=<directory> | default: /var/sos-berlin.com/js7/agent/var_4445 --config-directory=<directory> | default: /var/sos-berlin.com/js7/agent/var_4445/config --timeout=<seconds> | timeout for terminating jobs on Agent stop --java-options=<java options> | default: -Xms100m -Dfile.encoding=UTF-8; see https://kb.sos-berlin.com/x/uYo7B switches: -c | --curl | use curl instead of Java http client see https://kb.sos-berlin.com/x/ZqrAAw for more information. |
...
--http-port
- Specifies the HTTP port that the Agent is listening to in order to receive requests from a JS7 Controller. This option can be used to indicate which network interface the JS7 Agent should listen to if a hostname or IP address is specified, for example with
--http-port=myhost:4445
. - Without this option being used the port defaults to
4445
and the Agent listens to all available network interfaces. - If a port is specified then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
JS7_AGENT_HTTP_PORT
(see below) - Third precedence: use of default value
- Specifies the HTTP port that the Agent is listening to in order to receive requests from a JS7 Controller. This option can be used to indicate which network interface the JS7 Agent should listen to if a hostname or IP address is specified, for example with
--https-port
- Specifies the HTTPS port that the Agent is listening to in order to receive requests from a Controller. This option can be used to indicate which network interface the Agent should listen to if a hostname or IP address is specified, for example, with
--https-port=myhost:4445
. - When using the HTTPS protocol for connections from a Controller instance consider additionally allowing the HTTP protocol for local connections as with
--http-port=localhost:4445
. As the Agent Start Script makes use of an HTTP connection this the protocol has to be in place to allow the Agent to be started, stopped, etc. by its Start Script. - Without this option being used the port defaults to
4445
and the Agent listens to all available network interfaces. - If a port is specified then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
SJS7_AGENT_HTTPS_PORT
(see below) - Third precedence: use of default value
- Specifies the HTTPS port that the Agent is listening to in order to receive requests from a Controller. This option can be used to indicate which network interface the Agent should listen to if a hostname or IP address is specified, for example, with
--data-directory
- Specifies the location of the data directory that usually includes the
config
,logs, tmp
andstate
sub-directories. - This location has to be unique for any Agent instance.
- If a data directory is specified then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
JS7_AGENT_DATA
(see below) - Third precedence: use of default value
JS7_AGENT_HOME/var_<JS7_AGENT_PORT>
- Specifies the location of the data directory that usually includes the
--config-directory
- Specifies the location of the
config
directory for configuration data. - This location has to be unique for any Agent instance.
- Should a configuration directory be specified then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
JS7_AGENT_CONFIG_DIR
(see below) - Third precedence: use of default value
JS7_AGENT_HOME/var_<JS7_AGENT_PORT>
- Specifies the location of the
--sigkill-delay
- Specifies the delay for terminating job processes on Unix in case the Agent is terminated. A value
--sigkill-delay=5
will specify 5 seconds. Default:3
. - When the Agent is crashed or is stopped then remaining job processes and child processes will be forcibly terminated by the JS7 - Agent Watchdog.
- if the
--sigkill-delay
option specifies a positive, non-zero value- send all processes and child processes created by the Agent the SIGTERM signal,
- wait for the period specified with the
--sigkill-delay
option,
- send remaining job processes and child processes the SIGKILL signal.
- if the
- When using JS7 - systemd Service Files for automated Startup and Shutdown with Unix Systems users should consider that
--timeout
and--sigkill-delay
values will count towards the systemd service file'sTimeoutStopSec
setting. Users must ensure that the Agent is terminated when the systemd timeout is exceeded. - The option is available for Agents running on Unix starting from release 2.7.2, see
Jira server SOS JIRA columnIds issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 6dc67751-9d67-34cd-985b-194a8cdc9602 key JS-2148
- Specifies the delay for terminating job processes on Unix in case the Agent is terminated. A value
--timeout
With the
stop
andrestart
commands this option waits for the indicated duration and terminates the Agent including any job processes if the timeout is exceeded.- The option accepts a number of seconds or the
never
value to wait endlessly for jobs to terminate. - When using JS7 - systemd Service Files for automated Startup and Shutdown with Unix Systems users should consider that
--timeout
and--sigkill-delay
values will count towards the systemd service file'sTimeoutStopSec
setting. Users must ensure that the Agent is terminated when the systemd timeout is exceeded.
--kill-script
The kill script provides the functionality to kill tasks and any child processes of jobs.
- Kill scripts are by default provided from the following locations:
JS7_AGENT_DATA/work/kill_task.sh
for Unix.JS7_AGENT_DATA\work\kill_task.cmd
for Windows.
This option The option can be used to specify the location of an individual kill script if required.
Should an individual kill script be specified then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
JS7_AGENT_KILL_SCRIPT
(see below) - Third precedence: use of default value
- Starting from release 2.7.2 the option is ignored, see
Jira server SOS JIRA columnIds issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 6dc67751-9d67-34cd-985b-194a8cdc9602 key JS-2148
--java-options
This option can be used to apply Java options for the Agent, e.g. for memory settings, see JS7 - FAQ - Which Java Options are recommended.
Without this option being used the Java options default to
-Xms100m
.- In order to specify a number of Java options quotes have to be used like this:
--java-options="-Xms100m -Xmx1g"
When specifying Java options then the following order of precedence applies:
- First precedence: command line option
- Second precedence: environment variable
JAVA_OPTIONS
(see below) - Third precedence: use of default value
...
Code Block | ||
---|---|---|
| ||
agent_4445.sh|.cmd start-container [options] |
This The command is used to start the JS7 Agent in a container:
...
The Agent process will terminate.
The Starting from release 2.7.2 the command is deprecated and is replaced by the stop
command, optionally for Unix using the --sigkill-delay=0
option.
...
The Agent process is forcibly terminated.
- The
kill
command command can be used alternatively as an alias tocancel
. - The command corresponds to sending a SIGKILL signal with a
kill -9 9
OS command (Unix) ortaskkill
command (Windows) to the Agent. - Should jobs be running then they will be terminated by the JS7 - Agent Watchdog similar to crash of the Agent.
...