XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
25.55k stars 3.95k forks source link

Openwrt上没法自启动 #2602

Closed snowwolf007cn closed 7 months ago

snowwolf007cn commented 1 year ago

型号 | Netgear WNDR4300 架构 | Atheros AR9344 rev 2 目标平台 | ath79/nand 固件版本 | OpenWrt 22.03.5 r20134-5f15225c1e

Xray-core版本:1.8.3

安装以后,service里有xray,但是没有自启动,service start xray也没法启动

Fangliding commented 1 year ago

@snowwolf007cn 去找openwrt()

LeoOynick commented 1 year ago

https://github.com/openwrt/packages/blob/openwrt-22.03/net/xray-core/files/xray.init

harvey-git commented 1 year ago

巧了,我也是owr2203.5,这是我自己在用的:/etc/init.d/xray

#!/bin/sh /etc/rc.common START=80 ROOT=/etc/config/xray SERVICE_WRITE_PID=1 SERVICE_DAEMONIZE=1 start() { echo "start xray..." ulimit -SHn 8192 service_start $ROOT/xray run -c $ROOT/config.json echo "" > /var/log/error.log echo "" > /var/log/access.log } stop() { echo "stop xray." service_stop $ROOT/xray }

mpjanet commented 1 year ago

/etc/config/xray Set Enabled to 1 (installed as 0) I guess the developer want user to test configuration using command-line before start as a service.