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
+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