If the service program is not awaiting a request when this tag is rendered, the program must call
B$ReadRequest within
ServiceTimeout seconds. The call then returns with the
BIS-Fail-ProgramTerminated return code. At that point, the program is granted an additional
ServiceTimeout seconds to terminate.
If the program is still running when either
ServiceTimeout period expires, a termination signal is sent.
Once the
StopService tag is rendered, the service program is immediately disconnected from the session. For example, an
XMLExchange tag immediately after a
StopService tag is invalid and, if present, the
OnExit parameter in that tag will be processed.
The
StopService tag may be immediately followed by a
StartService tag. In this case, a new service program is started. Once the
StopService tag is rendered, the service program is considered terminated even if it needs a few additional seconds to actually stop.
This tag is ignored if there is no service program attached to this session.