2
0

fix: setup and control sh

This commit is contained in:
wfc
2024-12-17 09:35:52 +08:00
parent ec111bfdce
commit c185fd3846
4 changed files with 21 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
WFCWorkDir=/opt/wfc
WFCBinDir=${WFCWorkDir}/bin
DockerDir=${WFCWorkDir}/docker
DockerCompose=/usr/bin/docker-compose
DockerCompose=docker-compose
PIDFile=/run/wfccontrol.pid
Jars=" \
@@ -26,7 +26,9 @@ case "$1" in
stop)
cd ${DockerDir}
${DockerCompose} down
rm ${PIDFile}
if [ -f ${PIDFile} ]; then
rm ${PIDFile}
fi
;;
restart)
$0 stop