mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: 后端包结构重构、去除无用的文件
This commit is contained in:
13
server/shutdown.sh
Normal file
13
server/shutdown.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#bin/bash
|
||||
|
||||
pid=`ps ax | grep -i 'mayfly-go' | grep -v grep | awk '{print $1}'`
|
||||
if [ -z "${pid}" ] ; then
|
||||
echo "No mayfly-go running."
|
||||
exit -1;
|
||||
fi
|
||||
|
||||
echo "The mayfly-go(${pid}) is running..."
|
||||
|
||||
kill ${pid}
|
||||
|
||||
echo "Send shutdown request to mayfly-go(${pid}) OK"
|
||||
Reference in New Issue
Block a user