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:
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
--.