Start and stop Sametime Proxy Server V11 automatically with Linux systemd service

von Thomas, assono GmbH, Standort Kiel, 03.07.2020

I have already expressed my joy in several articles here that Sametime now works without the WebSphere Application Server (WAS) and without Db2. And that because of this fundamental change there were some gaps in the short term, which all could be closed/repaired quickly and easily. This article also fits into this category:

In the past, the wasservice.sh shell script made let you install services for everything (except the Db2 instance) under Linux. This way Sametime was started automatically when the operating system was started. But without WAS there is no wasservice.sh.

For the Sametime Community Server, which runs as a task in the Domino server, there is a proven option, although not published by HCL: Domino on Unix/Linux Start Script by Daniel Nashed.

But for the new Sametime Proxy Server there is no such thing yet. Not officially. In response to the question of What is the best practice to start Sametime in Linux / RHEL 7.8 automatically on boot up? Anthony Payne, HCL created a systemd configuration: Sametime v11 on Linux - How to create a service for the Sametime Proxy.

For myself, I

For me I have made a few small adjustments:

  • User, group and service are called sametimeproxy. I find this more suitable than tomcat.
  • As a dependency I added syslog.target to ensure that this service is already running.
  • With PIDFile=/opt/hcl/sametimeproxy/temp/tomcat.pid I specify that the process ID of the Tomcat server should be stored in this file.
  • With Restart=on-failure I tell the service to restart automatically in case of a crash or unclean exit.
  • I refer to the new OpenJDK with Environment="JAVA_HOME=/opt/hcl/sametimeproxy/openjdk" instead of the IBM JDK 8.

sametimeproxy.service

ZIP-Datei herunterladen

The remaining commands for preparation and post processing only need to be adapted to the name change.

As root (or with sudo):

adduser -m -U -d /opt/hcl/sametimeproxy -s /bin/false sametimeproxy
chown -R sametimeproxy:sametimeproxy /opt/hcl/sametimeproxy
nano /etc/systemd/system/sametimeproxy.service

systemctl daemon-reload
systemctl enable sametimeproxy
systemctl start sametimeproxy

systemctl stop sametimeproxy

Anthony writes in his answer, that with version 11.5 a corresponding start script should be included in the installation again.

Thomas Bahn

Thomas Bahn

Diplom-Mathematiker, IT-Spezialist & Speaker auf Fachkonferenzen

Thomas Bahn ist Mitgründer und Geschäftsführer der assono GmbH. Seit mehr als 20 Jahren berät er erfolgreich Unternehmen aus ganz Deutschland rund um das Thema Software und Digitalisierung. Insbesondere in den Bereichen HCL Notes und Domino (ehemals IBM) als auch bei aktuellen, unternehmensrelevanten KI-Themen wie Chatbots kennt er die neusten Entwicklungen und weiß, wie diese sich gewinnbringend für Unternehmen einsetzen lassen. Aufgrund seines Expertenwissens ist Thomas Bahn regelmäßiger Sprecher auf nationalen und internationalen Fachkonferenzen.

Fachbeitrag Administration HCL Sametime Für Entwickler

Sie haben Fragen zu diesem Artikel? Kontaktieren Sie uns gerne: blog@assono.de

Sie haben Interesse an diesem Thema?

Gerne bieten wir Ihnen eine individuelle Beratung oder einen Workshop an.

Kontaktieren Sie uns

Weitere interessante Artikel