0x676e67/thunder

x86的无法启动,在openwrt上

zJanch opened this issue · 17 comments

zJanch commented

x86的无法启动,在openwrt上,点击后,不运行

卸载安装最新版

zJanch commented

我安装了xunlei_3.5.2-2_x86_64.ipk luci-i18n-xunlei-zh-cn_1.0.1-2_all.ipk luci-app-xunlei_1.0.1-2_all.ipk三个包,但是还是不行

会不会SSH?进去打命令,pgrep -f xunlei

zJanch commented

稍等

image
我自己就是x86,没有任何问题

zJanch commented

不是我上面显示的未运行,这个命令应该出不了进程吧,迅雷 未运行

zJanch commented

点击启动保存后就运行中一会儿就显示未运行了,感觉是启动不了

执行xunlei launch,截图给我

执行xunlei launch,截图给我

再执行,要全屏
cat /etc/init.d/xunlei
ls /lib -lah | grep ld

zJanch commented

$ xunlei launch
Error: No such file or directory (os error 2)
没目录

zJanch commented

$ cat /etc/init.d/xunlei
#!/bin/sh /etc/rc.common

START=99
USE_PROCD=1
PROG=/usr/bin/xunlei

get_config() {
config_get_bool enabled $1 enabled 0
config_get host $1 host "0.0.0.0"
config_get port $1 port 5051
config_get config_path $1 config_path "/etc/xunlei"
config_get download_path $1 download_path "/tmp/downloads"
}

start_service() {
config_load xunlei
config_foreach get_config xunlei
[ $enabled -ne 1 ] && return 1

    if [ ! -d "/usr/share/xunlei/target/var" ];then
            id=$(cat /proc/sys/kernel/random/uuid | cut -c1-7)
            echo "unique=\"synology_${id}_720+\"" > /usr/share/xunlei/target/host/etc/synoinfo.conf
    fi

    if [ -f /etc/synoinfo.conf ];then
            rm /etc/synoinfo.conf
    fi

    if [ -f /usr/syno/synoman/webman/modules/authenticate.cgi ];then
            rm /usr/syno/synoman/webman/modules/authenticate.cgi
    fi

    rm -rf /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei/target/host/etc/synoinfo.conf /etc/synoinfo.conf
    ln -s /usr/share/xunlei/target/host/usr/syno/synoman/webman/modules/authenticate.cgi /usr/syno/synoman/webman/modules/authenticate.cgi
    args="--host $host --port $port --config-path $config_path --download-path $download_path"
    procd_open_instance
    procd_set_param command $PROG launch $args
    procd_set_param stdout 0
    procd_set_param stderr 0
    procd_set_param pidfile /var/run/xunlei.pid
    procd_close_instance

}

service_triggers() {
procd_add_reload_trigger "xunlei"
}

reload_service() {
stop
for i in $(seq 1 20); do
if [ -z "$(ps -ef | grep xunlei | grep -v grep | grep -v $$ |grep -v '/etc/rc.common' | grep -v '/sbin/service' | grep -v '/sbin/luci-reload')" ]; then
break
fi
sleep 1
done
start
}

root @ QS-OpenWrt in ~ [22:31:37]

$ ls /lib -lah | grep ld
lrwxrwxrwx 1 root root 7 May 1 21:08 ld-musl-x86_64.so.1 -> libc.so

$ cat /etc/init.d/xunlei #!/bin/sh /etc/rc.common

START=99 USE_PROCD=1 PROG=/usr/bin/xunlei

get_config() { config_get_bool enabled $1 enabled 0 config_get host $1 host "0.0.0.0" config_get port $1 port 5051 config_get config_path $1 config_path "/etc/xunlei" config_get download_path $1 download_path "/tmp/downloads" }

start_service() { config_load xunlei config_foreach get_config xunlei [ $enabled -ne 1 ] && return 1

    if [ ! -d "/usr/share/xunlei/target/var" ];then
            id=$(cat /proc/sys/kernel/random/uuid | cut -c1-7)
            echo "unique=\"synology_${id}_720+\"" > /usr/share/xunlei/target/host/etc/synoinfo.conf
    fi

    if [ -f /etc/synoinfo.conf ];then
            rm /etc/synoinfo.conf
    fi

    if [ -f /usr/syno/synoman/webman/modules/authenticate.cgi ];then
            rm /usr/syno/synoman/webman/modules/authenticate.cgi
    fi

    rm -rf /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei/target/host/etc/synoinfo.conf /etc/synoinfo.conf
    ln -s /usr/share/xunlei/target/host/usr/syno/synoman/webman/modules/authenticate.cgi /usr/syno/synoman/webman/modules/authenticate.cgi
    args="--host $host --port $port --config-path $config_path --download-path $download_path"
    procd_open_instance
    procd_set_param command $PROG launch $args
    procd_set_param stdout 0
    procd_set_param stderr 0
    procd_set_param pidfile /var/run/xunlei.pid
    procd_close_instance

}

service_triggers() { procd_add_reload_trigger "xunlei" }

reload_service() { stop for i in $(seq 1 20); do if [ -z "$(ps -ef | grep xunlei | grep -v grep | grep -v $$ |grep -v '/etc/rc.common' | grep -v '/sbin/service' | grep -v '/sbin/luci-reload')" ]; then break fi sleep 1 done start }

root @ QS-OpenWrt in ~ [22:31:37]

$ ls /lib -lah | grep ld lrwxrwxrwx 1 root root 7 May 1 21:08 ld-musl-x86_64.so.1 -> libc.so

service xunlei reload看看

$ cat /etc/init.d/xunlei #!/bin/sh /etc/rc.common

START=99 USE_PROCD=1 PROG=/usr/bin/xunlei

get_config() { config_get_bool enabled $1 enabled 0 config_get host $1 host "0.0.0.0" config_get port $1 port 5051 config_get config_path $1 config_path "/etc/xunlei" config_get download_path $1 download_path "/tmp/downloads" }

start_service() { config_load xunlei config_foreach get_config xunlei [ $enabled -ne 1 ] && return 1

    if [ ! -d "/usr/share/xunlei/target/var" ];then
            id=$(cat /proc/sys/kernel/random/uuid | cut -c1-7)
            echo "unique=\"synology_${id}_720+\"" > /usr/share/xunlei/target/host/etc/synoinfo.conf
    fi

    if [ -f /etc/synoinfo.conf ];then
            rm /etc/synoinfo.conf
    fi

    if [ -f /usr/syno/synoman/webman/modules/authenticate.cgi ];then
            rm /usr/syno/synoman/webman/modules/authenticate.cgi
    fi

    rm -rf /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei /var/packages/pan-xunlei-com
    ln -s /usr/share/xunlei/target/host/etc/synoinfo.conf /etc/synoinfo.conf
    ln -s /usr/share/xunlei/target/host/usr/syno/synoman/webman/modules/authenticate.cgi /usr/syno/synoman/webman/modules/authenticate.cgi
    args="--host $host --port $port --config-path $config_path --download-path $download_path"
    procd_open_instance
    procd_set_param command $PROG launch $args
    procd_set_param stdout 0
    procd_set_param stderr 0
    procd_set_param pidfile /var/run/xunlei.pid
    procd_close_instance

}

service_triggers() { procd_add_reload_trigger "xunlei" }

reload_service() { stop for i in $(seq 1 20); do if [ -z "$(ps -ef | grep xunlei | grep -v grep | grep -v $$ |grep -v '/etc/rc.common' | grep -v '/sbin/service' | grep -v '/sbin/luci-reload')" ]; then break fi sleep 1 done start }

root @ QS-OpenWrt in ~ [22:31:37]

$ ls /lib -lah | grep ld lrwxrwxrwx 1 root root 7 May 1 21:08 ld-musl-x86_64.so.1 -> libc.so

确实没发现什么问题,我自己重装测试了几次也没有重现,需要远程看了才知道,有兴趣就发qq联系到我邮箱gngppz@gmail.com

zJanch commented

$ service xunlei reload
Command failed: Not found
ln: /var/packages/pan-xunlei-com: No such file or directory

zJanch commented

已发