TIBCO Streaming supports running as a Windows service, which allows unattended startup after a reboot.
From the product documentation:
TIBCO StreamBase Documentation > Installation Guide > Configuring Windows as a Service
"Applications that are installed as Windows services are installed using the epadmin install systemservice command. The user in which the service should run is specified when installing the service. This user must have the JAVA_HOME environment variable set. By default this user is the SYSTEM user (use the username parameter to run install systemservice to use a different user)."
As noted in the example error message above, the account cannot be authorized with the
OSIsoft PI Asset Framework Client (it was the Windows SYSTEM user), so an alternative account must be used. In general, normal user accounts do not have the required "Log on as a service" privilege. The general solution is that whatever account is selected to run the service must be given the "Log on as a service" privilege within Windows.
This permission applies strictly to the local computer and must be granted in the
Local Security Policy. The user making this change must have
Administrator privilege, and may require
Domain Administrator privilege if the computer is on a domain.
The following instructions were verified using Windows 10 Pro (10.0.18362) with the latest security updates as of April 2020. Details are subject to change in later Windows updates.
As Administrator, make the following change within the Local Security Policy of the computer that will run the TIBCO Streaming service:
- Log into to the computer with administrative privileges.
- Open "Administrative Tools" and open the "Local Security Policy"
- Expand "Local Policy" and click on "User Rights Assignment"
- In the right pane, right-click "Log on as a service" and select properties.
- Click on the "Add User or Group..." button.
- In the "Select Users or Groups" dialog, find the user registered with OSI PI and assigned as the user account used to run the service. Once added to the list, click "OK". Note: Also ensure that the user added above is not listed in the "Deny log on as a service" policy in the Local Security Policy.
- Click "OK" to save changes.