This commit is contained in:
root
2026-04-12 19:35:40 +04:00
parent 1a631140a7
commit e80f3f0171
2 changed files with 242 additions and 351 deletions
+4 -3
View File
@@ -6,12 +6,13 @@ USE_PROCD=1
XRAYMANAGER_BIN="/opt/.xray-manager/xray-manager.sh"
extra_command "update" "Download and refresh remote lists"
extra_command "reload" "Quick reload using local cache"
start_service() {
"$XRAYMANAGER_BIN" start
procd_open_instance "main"
procd_set_param command /bin/true
procd_set_param command /bin/sh -c "while true; do sleep 3600; done"
procd_set_param respawn
procd_close_instance
}
@@ -25,4 +26,4 @@ reload_service() {
update() {
"$XRAYMANAGER_BIN" update
}
}