feat: backend native executor implement

This commit is contained in:
2026-08-16 01:27:30 +08:00
parent fbce91d797
commit 390e0565d3
44 changed files with 6430 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
[backend]
type = "native"
release_dir = "/home/yms/lib/releases"
active_jar = "/home/yms/lib/glory-soft-yms.jar"
systemctl_path = "/bin/systemctl"
[backend.slot.8080]
unit = "yms-backend@8080.service"
jar = "/home/yms/lib/glory-soft-yms-8080.jar"
health_endpoint = "http://127.0.0.1:8080/yms/actuator/health"
[backend.slot.8081]
unit = "yms-backend@8081.service"
jar = "/home/yms/lib/glory-soft-yms-8081.jar"
health_endpoint = "http://127.0.0.1:8081/yms/actuator/health"
+20
View File
@@ -0,0 +1,20 @@
[Unit]
Description=YMS Backend (%i)
After=network.target
[Service]
Type=simple
User=root
Group=root
EnvironmentFile=-/home/yms/bin/env/yms.env
WorkingDirectory=/home/yms/lib
ExecStart=/usr/bin/java -Xms1024m -Xmx10240m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/yms/dump -XX:ErrorFile=/home/yms/log/hs_err_pid%%p.log -XX:+ExitOnOutOfMemoryError -jar /home/yms/lib/glory-soft-yms-%i.jar --server.port=%i
Restart=on-failure
RestartSec=60
TimeoutStopSec=150min
StandardOutput=journal
StandardError=journal
SyslogIdentifier=yms-backend-%i
[Install]
WantedBy=multi-user.target
+23
View File
@@ -0,0 +1,23 @@
[Unit]
Description=YMS Update Daemon
After=network.target nginx.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/yms-daemon serve
Restart=on-failure
RestartSec=5
RuntimeDirectory=yms-daemon
RuntimeDirectoryMode=0755
StateDirectory=yms-daemon
StateDirectoryMode=0750
LogsDirectory=yms-daemon
LogsDirectoryMode=0750
StandardOutput=journal
StandardError=journal
SyslogIdentifier=yms-daemon
[Install]
WantedBy=multi-user.target
+1
View File
@@ -0,0 +1 @@
d /home/yms/dump 0755 root root -