Finalizes Lts/Tests migration and RPM to DEB packaging port
This commit is contained in:
31 files changed
+1144
-540
No files matched your search
@@ -0,0 +1,2 @@
|
||||
/etc/lts-cc.conf
|
||||
/etc/ld.so.conf.d/lts_sv.conf
|
||||
@@ -0,0 +1,17 @@
|
||||
Package: legatus-qt6-sv
|
||||
Version: 15.6-qt6.10.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Depends: libc6 (>= 2.34), libqt6core6 (>= 6.10.0), libqt6gui6 (>= 6.10.0), libqt6network6 (>= 6.10.0), libqt6sql6 (>= 6.10.0), libqt6xml6 (>= 6.10.0), libqt6websockets6 (>= 6.10.0), libgdal34, libpoppler-qt6-1, libecpg6, postgresql-client
|
||||
Maintainer: Legatus Team <legatus@life-maps.de>
|
||||
Description: Live Simulation Training System Server Software (Qt6)
|
||||
This package contains the Qt6-migrated LTS server software.
|
||||
.
|
||||
Features:
|
||||
- Qt6/C++17 migrated server components
|
||||
- PostgreSQL database connectivity
|
||||
- DDS-based communication (RTI Connext 7.7)
|
||||
- WebSockets support for remote clients
|
||||
.
|
||||
This is part of the Legatus Qt6 migration project.
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# postinst script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
|
||||
# Create log directory if it doesn't exist
|
||||
LOGDIR="/opt/legatus/sv/../LOG"
|
||||
if [ ! -e "${LOGDIR}" ]; then
|
||||
mkdir -p "${LOGDIR}"
|
||||
chown root:root "${LOGDIR}"
|
||||
chmod 1777 "${LOGDIR}"
|
||||
fi
|
||||
|
||||
# Enable systemd service if it exists
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl daemon-reload
|
||||
systemctl enable lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# postrm script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
|
||||
# Disable systemd service
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl disable lts_sv.service 2>/dev/null || true
|
||||
systemctl stop lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$1" = "purge" ]; then
|
||||
# Remove configuration files on purge
|
||||
rm -f /etc/lts-cc.conf
|
||||
rm -f /etc/ld.so.conf.d/lts_sv.conf
|
||||
rm -f /etc/security/limits.d/lts_sv_limits.conf
|
||||
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# prerm script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "remove" ]; then
|
||||
# Stop service before removal
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl stop lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# Legatus LTS Server shared libraries
|
||||
/opt/legatus/sv/lib
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
# Legatus LTS Server resource limits
|
||||
# Increase open file descriptors and process limits for ctc_sv user
|
||||
|
||||
ctc_sv soft nofile 65536
|
||||
ctc_sv hard nofile 65536
|
||||
ctc_sv soft nproc 4096
|
||||
ctc_sv hard nproc 4096
|
||||
ctc_sv soft memlock unlimited
|
||||
ctc_sv hard memlock unlimited
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=Legatus LTS Server Service
|
||||
Documentation=https://www.life-maps.de
|
||||
After=network.target postgresql.service
|
||||
Wants=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ctc_sv
|
||||
Group=ctc
|
||||
Environment="LD_LIBRARY_PATH=/opt/legatus/sv/lib"
|
||||
Environment="QT_QPA_PLATFORM=xcb"
|
||||
ExecStart=/opt/legatus/sv/bin/lts_sv
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=lts_sv
|
||||
|
||||
# Resource limits
|
||||
LimitNOFILE=65536
|
||||
LimitNPROC=4096
|
||||
|
||||
# Security hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/legatus/sv/var /opt/legatus/LOG
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user