1 Star 0 Fork 0

Witt/shells

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.gitee
docker
jenkins
kubernetes
linux
aas
connbys
createAndRunWechat.sh
curl-sentinel.sh
deleteSomeFiles.sh
deleteSpecialCharacter.sh
docker-cmd
fsebe
gitpush
import_mysql.sh
jdk11shell
kafkastartcluster
kafkastopcluster
nacos
nohup.out
rediss
rediss_solo
replaceAuthor.sh
seata
sentinel
sftpa
shpw
shpw2
shpw3
shpw_halo
shutdn
shutdown-sca.sh
ssha
ssha20210805
start
startall
startidea
startpostman
startup-sca.sh
startvm
test
tomcat
touchpad
wechat
.gitignore
LICENSE
README.en.md
README.md
克隆/下载
aas 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# operate kingdee aas container
case "$1" in
start)
nohup /develop/AAS-V9.0/domains/sca/bin/startapusic > /develop/AAS-V9.0/domains/sca/logs/scafe`date +'%Y%m%d%H%M%S'`.log 2>&1 &
echo Application started successfully
;;
restart)
/develop/AAS-V9.0/domains/sca/bin/stopapusic
# systemctl stop sca.asusic
sleep 2
PID=$(ps -ef | grep java | grep AAS-V9.0 | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo Application is already stopped
else
echo kill $PID
kill -9 $PID
echo Application stopped successfully
fi
nohup /develop/AAS-V9.0/domains/sca/bin/startapusic > /develop/AAS-V9.0/domains/sca/logs/scafe`date +'%Y%m%d%H%M%S'`.log 2>&1 &
echo Application started successfully
;;
stop)
/develop/AAS-V9.0/domains/sca/bin/stopapusic
# systemctl stop sca.asusic
sleep 2
PID=$(ps -ef | grep java | grep AAS-V9.0 | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo Application is already stopped
else
echo kill $PID
kill -9 $PID
echo Application stopped successfully
fi
;;
status)
ps aux | grep apusic | grep -v com.ciic.sca.ScaJpaApplication
;;
*)
echo "Usage: aas {start|stop|restart|status}"
;;
esac
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/mediocrep/shells.git
git@gitee.com:mediocrep/shells.git
mediocrep
shells
shells
main

搜索帮助