Compare commits

...

8 Commits

Author SHA1 Message Date
dami 81083dd30c Delete test_apache_install.sh 2026-04-14 18:31:17 +08:00
dami 9a5a09438e Update mw.tpl 2026-04-14 18:26:12 +08:00
dami f17447b2f1 Update mw.tpl 2026-04-14 18:11:18 +08:00
dami 930eb14a8a Update mw.tpl 2026-04-14 18:04:35 +08:00
dami 08951f8c2e Update mw.tpl 2026-04-14 18:00:02 +08:00
dami c74bb01c3c Update mw.tpl 2026-04-14 17:53:14 +08:00
dami 34b9b189d4 Update mw.tpl 2026-04-14 17:43:22 +08:00
dami 960aca266e Update mw.tpl 2026-04-14 17:32:55 +08:00
2 changed files with 14 additions and 16 deletions

View File

@ -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;;

View File

@ -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: $?"