Skip to main content
Topic: v2ray service not running (Read 1352 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic. Redirected from MOVED: v2ray service not running

v2ray service not running

I use runit and have installed v2ray and v2ray-runit. After I activate the v2ray service using this command:
Code: [Select]
sudo ln -s /etc/runint/sv/v2ray /etc/runit/rusvdir/default
I have v2ray on the enabled services directory:
Code: [Select]
❯ ls /etc/runit/runsvdir/default
agetty-tty1  agetty-tty2  agetty-tty3  agetty-tty4  agetty-tty5  agetty-tty6  alsa  cronie  dbus  logind  NetworkManager  nftables  ntpd  sshd  tor  udevd  v2ray
❯ ls /run/runit/service
agetty-tty1  agetty-tty2  agetty-tty3  agetty-tty4  agetty-tty5  agetty-tty6  alsa  cronie  dbus  logind  NetworkManager  nftables  ntpd  sshd  tor  udevd  v2ray
But when I check for the service status I get:
Code: [Select]
❯ sv status v2ray
down: v2ray: 1s, normally up, want up
Result of start command:
Code: [Select]
❯ sv start v2ray
ok: run: v2ray: (pid 18294) 0s
But the status still shows down and rebooting the system didn't help. So I cannot use the proxy on my browser or etc. If I run v2ray manually from terminal, there's no error and I can use the proxy.

Re: v2ray service not running

Reply #1
I mentioned the problem several months ago, but it seems only OpenRC gets the fix.

For runit, the script is still as below:
Code: [Select]
/usr/bin/v2ray -config /etc/v2ray/config.json > /var/log/v2ray.log
The run before -config is lacked.



Re: v2ray service not running

Reply #4
Ping @Artist

Please check all other init scripts, too.