Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Please tell me how to turn on the start of the Tor service on Runit (Read 120 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Please tell me how to turn on the start of the Tor service on Runit

As I asked.
I've added:
Code: [Select]
nano / etc / runit / sv / tor / run
Content:
Code: [Select]
#!/bin/sh
exec 2>&1
exec /usr/bin/tor -D
Command on Terminal:
Code: [Select]
ln -s /etc/runit/sv/tor /run/runit/service
sv u tor
sv start tor
sv restart tor
Code: [Select]
ps -A | grep tor
sv status /run/runit/service/*
Everything still doesn't work:
Code: [Select]
down: /run/runit/service/tor: 1s, normally up, want up
Can you show me where the mistake is?
Thanks

Re: Please tell me how to turn on the start of the Tor service on Runit

Reply #1
@artoo
Can you help me with this
Sorry if it bothers you

Re: Please tell me how to turn on the start of the Tor service on Runit

Reply #2
@artoo
Can you help me with this
Sorry if it bothers you
konimex is usually responsible for runit
As of your question, i'm not sure if linking to /run/runit/service is correct in Artix. To start service i usually use
Code: [Select]
ln -s /etc/runit/sv/service /etc/runit/runsvdir/default/<service name>
. In that case runit starts the service immideately. If for some reason it still doesn't work, try running commands from the init script manually to see if there are any error messages

Re: Please tell me how to turn on the start of the Tor service on Runit

Reply #3
Thank you for supporting me.
I fixed the following error:
Code: [Select]
nano /etc/runit/sv/tor/run
The following content:
Code: [Select]
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec /usr/bin/tor -D -n > /dev/null 2>&1
Everything worked

Re: Please tell me how to turn on the start of the Tor service on Runit

Reply #4
Hello, and apologies for the late response. While I'm glad you have solved the problem, we actually have the package to deal with tor, tor-runit.

Simply install tor-runit and it should be done. You can activate it like usual. However since you created the tor file, it will conflict with the package. The contents of the ./run file isn't that different, just

#!/bin/sh
exec tor --quiet --runasdaemon 0 2>&1

Cheers!
the runit guy on artix

 

Re: Please tell me how to turn on the start of the Tor service on Runit

Reply #5
I have just been to Runit recently
Everything is quite new to me
Thank you