From cc205f6b3bf01ec5f71852445da0230f7353a163 Mon Sep 17 00:00:00 2001 From: snltty <1069410172@qq.com> Date: Tue, 3 Jun 2025 19:14:26 +0800 Subject: [PATCH] kvm --- src/linker/kvm/linker-kvm.sh | 18 +++++++++--------- version.txt | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/linker/kvm/linker-kvm.sh b/src/linker/kvm/linker-kvm.sh index 112c84f6..3871e206 100644 --- a/src/linker/kvm/linker-kvm.sh +++ b/src/linker/kvm/linker-kvm.sh @@ -1,19 +1,19 @@ #!/bin/bash -if [ ! -f /linker/supervisord.conf ]; then - cat >> /linker/supervisord.conf << EOF +if [ ! -f /linker/kvm/supervisord.conf ]; then + cat >> /linker/kvm/supervisord.conf << EOF [supervisord] -logfile = /linker/supervisord.log +logfile = /linker/kvm/supervisord.log logfile_maxbytes = 50MB -pidfile = /linker/supervisord.pid +pidfile = /linker/kvm/supervisord.pid daemon = true [unix_http_server] -file = /linker/supervisor.sock +file = /linker/kvm/supervisor.sock [supervisorctl] -serverurl = unix:///linker/supervisor.sock +serverurl = unix:///linker/kvm/supervisor.sock [program:linker] command=/linker/linker @@ -22,7 +22,7 @@ autostart=true autorestart=true priority=12 stopasgroup=true -stdout_logfile=/linker/stdout +stdout_logfile=/linker/kvm/stdout stdout_logfile_maxbytes = 0 redirect_stderr=true EOF @@ -31,6 +31,7 @@ fi if [ ! -f /usr/share/kvmd/extras/linker/manifest.yaml ]; then + mkdir -p /usr/share/kvmd/extras/linker cat >> /usr/share/kvmd/extras/linker/manifest.yaml << EOF name: linker description: linker network @@ -59,7 +60,6 @@ with open("/usr/share/kvmd/web/share/i18n/i18n_zh.json", "w", encoding='utf-8') END - -supervisord -c /linker/supervisord.conf & +supervisord -c /linker/kvm/supervisord.conf & /kvmd/init.sh \ No newline at end of file diff --git a/version.txt b/version.txt index 348ce2ff..c840463e 100644 --- a/version.txt +++ b/version.txt @@ -1,4 +1,4 @@ v1.8.2 -2025-06-03 17:34:34 +2025-06-03 19:14:26 1. 一些累计更新 2. 测试发布,请使用1.8.2 \ No newline at end of file