fix: setup and control sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user