on RPi4 + Xbian with 5.15.92+ after
sudo apt-get install tor obfs4proxy and configuring /etc/tor/torrc (as shown below) I am wondering how to restart Tor to adopt my torrc file modifications:
root@xbian ~ # grep -v “#” /etc/default/tor|grep .
if [ -e /etc/default/tor.vidalia ] && [ -x /usr/bin/vidalia ]; then
root@xbian ~ # grep -v “#” /etc/tor/torrc|grep .
HiddenServicePort 12345 127.0.0.1:12345
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:10124
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).
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.
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?