Artix Linux Forum

Artix Linux => Package management => Topic started by: glgl-schemer on 27 September 2022, 03:59:34

Title: The Initialization Packages of V2Ray Need Updates
Post by: glgl-schemer on 27 September 2022, 03:59:34
I required the package V2Ray long time ago (https://forum.artixlinux.org/index.php/topic,2898.0.html), and its initialization packages need update now, as the official changed the command line (https://github.com/v2fly/v2ray-core/blob/master/release/config/systemd/system/v2ray.service) of the executable.

I use OpenRC, so changing the start function in /etc/init.d/v2ray as below works for me:
Code: [Select]
start() {
        checkconfig || return 1

        ebegin "Starting V2ray"
        ebegin "Log File : ${V2_LOG}"
        start-stop-daemon --start       \
        -b -1 ${V2_LOG} -2 ${V2_LOG}    \
        -m -p ${V2_PIDFILE}             \
        --exec /usr/bin/v2ray  -- run -config ${V2_CONFIG}
        eend $?

}
The original script lacks a run after --.
Title: Re: The Initialization Packages of V2Ray Need Updates
Post by: ndowens on 28 September 2022, 01:23:42
Updated it