fix: setup and control sh

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

No files matched your search

+4 -2
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