Mike,
I have a server running openmeetings on 22.04.
I start the server using the following two systemd service files.
This one starts kurento.
roger@dragon:/etc/systemd/system$ cat docker.kms.service
[Unit]
Description=kurento media server
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=no
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull kurento/kurento-media-server
ExecStart=/usr/bin/docker run --rm --name %n --network host
kurento/kurento-media-server
# Give some time to allow kms to open its sockets before systemd marks the
service as started
ExecStartPost=/usr/bin/sleep 15
[Install]
WantedBy=default.target
This one starts openmeetings. It will not be started until
docker.kms.service is successfully running.
roger@dragon:/etc/systemd/system$ cat openmeetings.service
##############################################
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################
# /etc/systemd/system/openmeetings.service
# sudo systemctl daemon-reload
# sudo systemctl restart openmeetings
[Unit]
Description=Apache OpenMeetings server
After=network.target
After=docker.kms.service
Requires=docker.kms.service
[Service]
Type=forking
Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
Environment=CATALINA_PID=/var/run/openmeetings.pid
WorkingDirectory=/opt/openmeetings
Environment=CATALINA_HOME=/opt/openmeetings
Environment=CATALINA_BASE=/opt/openmeetings
Environment='JDK_JAVA_OPTIONS=--add-modules java.se --add-exports
java.base/jdk.internal.ref=ALL-UNNAMED --add-opens
java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens
java.management/sun.management=ALL-UNNAMED --add-opens
jdk.management/com.sun.management.internal=ALL-UNNAMED'
Environment='CATALINA_OPTS=-Xms1G -Xmx4G -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true
-Djava.security.egd=file:/dev/./urandom'
ExecStart=/opt/openmeetings/bin/startup.sh
ExecStop=/opt/openmeetings/bin/shutdown.sh
User=nobody
Group=nogroup
UMask=0007
RestartSec=10
Restart=no
TasksMax=infinity
[Install]
WantedBy=multi-user.target
I suggest you just install the kms one to start off with and make sure that
it is working before enabling the openmeetings one.
Roger