1.8.1 Starting and monitoring the JP1/Script service
- Organization of this subsection
(1) When to start the JP1/Script service
The JP1/Script service must always be running. Before you attempt to start a script file from another service, you need to start the JP1/Script service.
- Adverse effects if the JP1/Script service is not running
-
The system is affected as follows if the JP1/Script service is not running:
-
An analysis or execution trace is not output when a script file is started.
If you start a script file while the JP1/Script service is not running, the following warning message is output to the event log:
ID 96: The execution result will not be output to the analysis/execution trace file because the JP1/Script service is not running.\nAlso, execution of the Message, EntryStartUp, or CancelStartUp command, or the global variable operation command will result in an error.\nStart the JP1/Script service, and then perform execution.
Note that startup of a script file will not be canceled even if the JP1/Script service is not running.
If the JP1/Script service starts running during execution of the script file, the subsequent analysis and execution traces will be output.
-
Execution of the Message command with Target_File, Target_SPAFile, or Target_SPXFile specified, the EntryStartUp command, the CancelStartUp command, or a command for manipulating variables fails.
If an error occurs while the JP1/Script service is not running, _ERR_SERVICE_NOT_BEGIN_ (value: 536903968) is set in the _RTN_ reserved variable.
-
The TerminateProcess command cannot forcibly terminate a script process that was executed by a service or another user.
The command always returns True. This is the same as what happens when a process specified by the process ID does not exist.
-
In the Script Manager window, automatic start information cannot be set in the dialog box that opens by selecting: (1) File, Set Execution Environment, and then All Items, (2) File, Set Execution Environment, and then Start Date, or (3) Tools and then Set Automatic Start.
If you perform the operation while the JP1/Script service is not running, the following error dialog box opens and the display of the setup dialog box is canceled:
The operation could not be performed because the JP1/Script service is not running. Launch the JP1/Script service, and then re-execute the operation.
-
Options cannot be set in the dialog box that opens by selecting Tools and then Options in the Script Manager window.
If you perform the operation while the JP1/Script service is not running, the following error dialog box opens and the display of the option dialog box is canceled:
The operation could not be performed because the JP1/Script service is not running. Launch the JP1/Script service, and then re-execute the operation.
-
The dialog box for setting automatic start information cannot be displayed by selecting Monitoring and then Set Execution Environment in the Script Editor window.
Automatic start information cannot be set. If you perform the operation while the JP1/Script service is not running, the following error dialog box opens and the display of the setup dialog box is canceled:
The operation could not be performed because the JP1/Script service is not running. Launch the JP1/Script service, and then re-execute the operation.
-
Processes being executed by the service and other users cannot be displayed in Process Viewer.
If the processes cannot be displayed, the following error dialog box opens, and then Process Viewer starts:
Processes that are started by a service or being executed by another user are not displayed because the JP1/Script service is not running. To display the processes, launch the JP1/Script service, and then re-execute the operation.
-
Trace Viewer cannot be started.
If Trace Viewer cannot be started, the following error dialog box opens and startup of Trace Viewer is canceled:
The operation could not be performed because the JP1/Script service is not running. Launch the JP1/Script service, and then re-execute the operation.
(2) Monitoring the JP1/Script service
If necessary, use the activity monitoring program to monitor the JP1/Script service. For details, see 2.6 Monitoring of JP1/Script by the activity monitoring program.