mirror of
https://github.com/snltty/linker.git
synced 2025-10-05 09:06:54 +08:00
kvm
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -f /linker/supervisord.conf ]; then
|
if [ ! -f /linker/kvm/supervisord.conf ]; then
|
||||||
cat >> /linker/supervisord.conf << EOF
|
cat >> /linker/kvm/supervisord.conf << EOF
|
||||||
|
|
||||||
[supervisord]
|
[supervisord]
|
||||||
logfile = /linker/supervisord.log
|
logfile = /linker/kvm/supervisord.log
|
||||||
logfile_maxbytes = 50MB
|
logfile_maxbytes = 50MB
|
||||||
pidfile = /linker/supervisord.pid
|
pidfile = /linker/kvm/supervisord.pid
|
||||||
daemon = true
|
daemon = true
|
||||||
|
|
||||||
[unix_http_server]
|
[unix_http_server]
|
||||||
file = /linker/supervisor.sock
|
file = /linker/kvm/supervisor.sock
|
||||||
|
|
||||||
[supervisorctl]
|
[supervisorctl]
|
||||||
serverurl = unix:///linker/supervisor.sock
|
serverurl = unix:///linker/kvm/supervisor.sock
|
||||||
|
|
||||||
[program:linker]
|
[program:linker]
|
||||||
command=/linker/linker
|
command=/linker/linker
|
||||||
@@ -22,7 +22,7 @@ autostart=true
|
|||||||
autorestart=true
|
autorestart=true
|
||||||
priority=12
|
priority=12
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
stdout_logfile=/linker/stdout
|
stdout_logfile=/linker/kvm/stdout
|
||||||
stdout_logfile_maxbytes = 0
|
stdout_logfile_maxbytes = 0
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
EOF
|
EOF
|
||||||
@@ -31,6 +31,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if [ ! -f /usr/share/kvmd/extras/linker/manifest.yaml ]; then
|
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
|
cat >> /usr/share/kvmd/extras/linker/manifest.yaml << EOF
|
||||||
name: linker
|
name: linker
|
||||||
description: linker network
|
description: linker network
|
||||||
@@ -59,7 +60,6 @@ with open("/usr/share/kvmd/web/share/i18n/i18n_zh.json", "w", encoding='utf-8')
|
|||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
|
supervisord -c /linker/kvm/supervisord.conf &
|
||||||
supervisord -c /linker/supervisord.conf &
|
|
||||||
|
|
||||||
/kvmd/init.sh
|
/kvmd/init.sh
|
@@ -1,4 +1,4 @@
|
|||||||
v1.8.2
|
v1.8.2
|
||||||
2025-06-03 17:34:34
|
2025-06-03 19:14:26
|
||||||
1. 一些累计更新
|
1. 一些累计更新
|
||||||
2. 测试发布,请使用1.8.2
|
2. 测试发布,请使用1.8.2
|
Reference in New Issue
Block a user