mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
1c5e60f690
- Remove spring-cloud-starter-zookeeper-discovery from POM (V1 doesn't have it, causes zookeeperRibbonClientConfiguration error) - Remove ZK exclusions from AppApplication.java (no longer needed) - bootstrap.properties now 100% identical to V1 production - PersonFeignClient restored to placeholder-based name (no hardcoded URL) - Remove NIWSServerListClassName/listOfServers (ConfigurationBasedServerList) Bump version to 2.0.17
24 lines
777 B
Desktop File
24 lines
777 B
Desktop File
[Unit]
|
|
Description=cw-elevator-application 2.0.17 (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.17.pid
|
|
ExecStartPre=/bin/rm -f /run/cw-elevator-application-2.0.17.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
|