Compare commits
8 Commits
840e04dc55
...
81083dd30c
| Author | SHA1 | Date |
|---|---|---|
|
|
81083dd30c | |
|
|
9a5a09438e | |
|
|
f17447b2f1 | |
|
|
930eb14a8a | |
|
|
08951f8c2e | |
|
|
c74bb01c3c | |
|
|
34b9b189d4 | |
|
|
960aca266e |
|
|
@ -48,6 +48,7 @@ mw_start_panel()
|
|||
cd ${PANEL_DIR}/web && gunicorn -c setting.py app:app
|
||||
port=$(cat ${PANEL_DIR}/data/port.pl)
|
||||
isStart=""
|
||||
n=0
|
||||
while [[ "$isStart" == "" ]];
|
||||
do
|
||||
echo -e ".\c"
|
||||
|
|
@ -132,7 +133,7 @@ mw_stop_task()
|
|||
mw_stop_panel()
|
||||
{
|
||||
echo -e "stopping mw-panel... \c";
|
||||
pidfile=${PANEL_DIR}/logs/mw.pid
|
||||
pidfile=${PANEL_DIR}/logs/panel.pid
|
||||
if [ -f $pidfile ];then
|
||||
pid=`cat $pidfile`
|
||||
kill -9 $pid > /dev/null 2>&1
|
||||
|
|
@ -758,14 +759,20 @@ case "$1" in
|
|||
'stop') mw_stop;;
|
||||
'reload') mw_reload;;
|
||||
'restart')
|
||||
mw_stop
|
||||
mw_start;;
|
||||
(mw_stop && sleep 2 && mw_start) > /dev/null 2>&1 &
|
||||
echo "restarting mw service in background..."
|
||||
echo "please check service status later."
|
||||
mw_default;;
|
||||
'restart_panel')
|
||||
mw_stop_panel
|
||||
mw_start_panel;;
|
||||
(mw_stop_panel && sleep 2 && mw_start_panel) > /dev/null 2>&1 &
|
||||
echo "restarting mw-panel service in background..."
|
||||
echo "please check service status later."
|
||||
mw_default;;
|
||||
'restart_task')
|
||||
mw_stop_task
|
||||
mw_start_task;;
|
||||
(mw_stop_task && sleep 2 && mw_start_task) > /dev/null 2>&1 &
|
||||
echo "restarting mw-task service in background..."
|
||||
echo "please check service status later."
|
||||
mw_default;;
|
||||
'status') mw_status;;
|
||||
'logs') error_logs;;
|
||||
'close') mw_close;;
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 测试 Apache 安装脚本
|
||||
cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/apache/versions/2.4
|
||||
echo "Running Apache install script..."
|
||||
# 直接运行脚本,不使用 trae-sandbox
|
||||
./install.sh upgrade
|
||||
|
||||
echo "Installation completed with exit code: $?"
|
||||
Loading…
Reference in New Issue