25th Mar, 2023, 06:55 AM
Hello,
on RPi4 + Xbian with 5.15.92+ after
and configuring /etc/tor/torrc (as shown below) I am wondering how to restart Tor to adopt my torrc file modifications:
I had Tor already installed, it is used by one app (but tor process is not running per "ps") already had first 4 torrc config. file lines (shown above).
I expect that RUN_DAEMON="yes" make sure Tor starts at boot. But how do i restart it without reboot and make it working without above error, please?
on RPi4 + Xbian with 5.15.92+ after
Code:
sudo apt-get install tor obfs4proxy
Quote:root@xbian ~ # grep -v "#" /etc/default/tor|grep .
RUN_DAEMON="yes"
CLEANUP_OLD_COREFILES=y
if [ -e /etc/default/tor.vidalia ] && [ -x /usr/bin/vidalia ]; then
. /etc/default/tor.vidalia
fi
Quote:root@xbian ~ # grep -v "#" /etc/tor/torrc|grep .
ControlPort 9051
CookieAuthentication 1
HiddenServiceDir /var/lib/tor/Abc
HiddenServicePort 12345 127.0.0.1:12345
BridgeRelay 1
ORPort 10123
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:10124
ExtORPort auto
ContactInfo <me@altmails.com>
Nickname NickName
I had Tor already installed, it is used by one app (but tor process is not running per "ps") already had first 4 torrc config. file lines (shown above).
Quote:root@xbian ~ # /etc/init.d/tor restart
Stopping tor daemon...done (not running - there is no /run/tor/tor.pid).
Starting tor daemon...Mar 24 21:46:33.844 [warn] Socket creation failed: Address family not supported by protocol
Mar 24 21:46:33.845 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Mar 24 21:46:33.845 [err] Reading config failed--see warnings above.
failed.
I expect that RUN_DAEMON="yes" make sure Tor starts at boot. But how do i restart it without reboot and make it working without above error, please?