Artix Linux Forum

Init systems => runit => Topic started by: mehdi on 19 February 2023, 07:03:53

Title: v2ray service not running
Post by: mehdi on 19 February 2023, 07:03:53
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.
Title: Re: v2ray service not running
Post by: glgl-schemer on 01 March 2023, 08:22:59
I mentioned the problem (https://forum.artixlinux.org/index.php/topic,4610.msg29536.html#msg29536) several months ago, but it seems only OpenRC gets the fix.

For runit, the script (https://gitea.artixlinux.org/packagesV/v2ray-runit/src/branch/master/trunk/v2ray.run) is still as below:
Code: [Select]
/usr/bin/v2ray -config /etc/v2ray/config.json > /var/log/v2ray.log
The run before -config is lacked.
Title: Re: v2ray service not running
Post by: glgl-schemer on 21 March 2023, 17:52:43
Ping @ndowens
Title: Re: v2ray service not running
Post by: ndowens on 22 March 2023, 07:00:56
I dont have access to runit repo
Title: Re: v2ray service not running
Post by: glgl-schemer on 01 May 2023, 16:36:51
Ping @Artist

Please check all other init scripts, too.