Files
反编译工作区 7d52fd5d0b release: v2.0.14 with fixed JAR name matching V1
- JAR name fixed to cw-elevator-application-V1.0.0.20211103.jar
  matching V1 production naming convention exactly
- Release bundle directory uses version+date for identification
- Update release script and POM finalName accordingly
2026-05-05 18:23:08 +08:00

24 lines
777 B
Desktop File

[Unit]
Description=cw-elevator-application 2.0.14 (Maven V2 fat jar)
After=network.target remote-fs.target nss-lookup.target
[Service]
# 将 WorkingDirectory、ExecStart、ExecStop 中的路径占位改为实际部署绝对路径(与 JAR、start.sh、properties 同目录)。
PIDFile=/run/cw-elevator-application-2.0.14.pid
ExecStartPre=/bin/rm -f /run/cw-elevator-application-2.0.14.pid
ExecStart=/bin/bash /path/to/cw-elevator-application/start.sh
ExecStop=/bin/bash /path/to/cw-elevator-application/stop.sh
ExecReload=/bin/kill -s HUP $MAINPID
KillSignal=SIGQUIT
TimeoutStopSec=5
KillMode=process
PrivateTmp=true
Restart=always
RestartSec=10
StandardOutput=null
StandardError=null
WorkingDirectory=/path/to/cw-elevator-application
[Install]
WantedBy=multi-user.target