rename: 3x-ui/x-ui -> L-UI/l-ui/lui-agent (paths, services, env, assets)
Display L-UI; panel binary/process l-ui, agent lui-agent. Dirs /usr/local/l-ui, /etc/l-ui, /var/log/l-ui; DB /etc/l-ui/l-ui.db (name file drives it via GetName), probe.db beside it, cert /etc/l-ui/cert, bin /usr/local/l-ui/bin. Services l-ui.service / lui-agent.service, OpenRC lui-agent, l-ui.sh, cmd/lui-agent. Env prefix XUI_ -> LUI_ (code reads new prefix only). Release assets l-ui-linux-* / lui-agent-linux-*; Gitea repo rogue/l-ui is a placeholder pending user confirmation (see selfupdate.go note). Go module path github.com/mhsanaei/3x-ui/v3 intentionally kept. Versions unchanged: panel V2.6.0 / agent A2.5.0.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# L-UI node agent procd init script (OpenWrt)
|
||||
# Install: cp lui-agent /etc/init.d/lui-agent && chmod +x /etc/init.d/lui-agent
|
||||
# /etc/init.d/lui-agent enable && /etc/init.d/lui-agent start
|
||||
|
||||
USE_PROCD=1
|
||||
START=99
|
||||
STOP=10
|
||||
|
||||
start_service() {
|
||||
procd_open_instance lui-agent
|
||||
procd_set_param command /usr/local/l-ui/lui-agent agent --config /etc/l-ui/agent.json
|
||||
procd_set_param env LUI_BIN_FOLDER=/usr/local/l-ui/bin
|
||||
procd_set_param respawn 3600 5 5
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# 3x-ui node agent procd init script (OpenWrt)
|
||||
# Install: cp x-ui-agent /etc/init.d/x-ui-agent && chmod +x /etc/init.d/x-ui-agent
|
||||
# /etc/init.d/x-ui-agent enable && /etc/init.d/x-ui-agent start
|
||||
|
||||
USE_PROCD=1
|
||||
START=99
|
||||
STOP=10
|
||||
|
||||
start_service() {
|
||||
procd_open_instance x-ui-agent
|
||||
procd_set_param command /usr/local/x-ui/xui-agent agent --config /etc/x-ui/agent.json
|
||||
procd_set_param env XUI_BIN_FOLDER=/usr/local/x-ui/bin
|
||||
procd_set_param respawn 3600 5 5
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user