Running the Sametime 11 Proxy as a Windows Service
Detlev Poettgen März 12 2020 12:50:56 PM
The new HCL Sametime 11 Proxy server is based on the Tomcat Runtime and is really great:simple to install
Just extract the installation package to the target directory and you are done
simple to configure
Execute the install.bat from a command line and answer a few questions (location of the Community and Mongo Database server)
easy to start
Open a command line and execute the startup.bat
But if you are on Windows, you would like to run the Proxy as a Windows Service.
Because starting the Proxy from a command line will stop the Proxy, when you log off.
At the moment it is not possible to run the Proxy as a Windows service.
The reason is the leightweigt stripped down Tomcat package delivered by HCL, which does not include a service.bat oder tomcatxx.exe file.
This files will be used to register Tomcat as a Windows service.
HCL already published a Knowledge Base article about this issue; https://hclpnpsupport.hcltech.com/csm?id=kb_article&sysparm_article=KB0074805
There is a workaround until HCL will provide an update for the Proxy, which is already scheduled.
You can use the Windows Task Scheduler to start the Tomcat server automatically on system start. The Tomcat / Sametime Proxy will not run as service, but will be automatically start after a reboot and will run in the background.
To do that:
Open the Windows Task Scheduler on your Windows Server
1. Create a new Simple Task
2. Name of the new Task: Autostart Sametime Proxy
3. Trigger: On System Start
4. Action: Execute a Program
5. Program/Script: cmd
Arguments: /c C:\HCL\SametimeProxy\bin\startup.bat
6. Click next and save the new task.
On the summary page, set the option to open the properties of the new task.
7. View the properties of the created task and change the Security options
- Change Start As to the system account.
To do that: Click the "Change User or Group" button
Make sure "From this location" is set to the local machine name (to change click "Locations" button and select the local computer name)
Type "SYSTEM" in the text box and press ok .
Under "When running the task, use the following user account:" you should see "NT AUTHORITY\SYSTEM".
Set the option: Start with highest privileges
Set the option: Configure for "Windows Server 2012" or "Windows Server 2016"
Finally add a new system environment variable CATALINA_HOME pointing to the Sametime Proxy install directory.
That's it. Reboot your machine and the Proxy should start automatically.
When opening the Task Manager, you should see a JAVA.EXE running.
- Kommentare [3]