mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
8b15445328
Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
24 lines
774 B
Desktop File
24 lines
774 B
Desktop File
[Unit]
|
|
Description=cw-elevator-application 2.0.6 (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.6.pid
|
|
ExecStartPre=/bin/rm -f /run/cw-elevator-application-2.0.6.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
|