Am 03.02.2021 um 21:14 schrieb Patrice Bönig:
I am now compiling the new 0.4.4.7 version and by that I saw that the entry of "systemd support (--enable-systemd)" is is "no". So I assume that the systemd functionality is not on board, or am I wrong? How do I enable for the compiling process?
regards Karl
Permissions issue of /var/lib/tor / DataDirectory most likely, and Tor can't fix it itself since it's likely owned by root, however the systemd unit starts it under a separate user. 2021-01-22 12:03 GMT, Patrice B?nig mailinglist@pboenig.de:
Hi @ list,
I am operating a relay for several years and I really do like it and will do it for more years.
My current relay residents on Pi 4. At first I installed it via apt but now the 32 Bit sources are no longer available. So I thought I could build the from source.
The building process went well but now I have a problem with the user permissions. I can't get tor really running.
_My first attempt was:_
To start tor with "systemctl start tor". But tor won't start and " journalctl -u tor" says only this:
Jan 22 09:06:23 rpi4tor systemd[1]: Starting LSB: Starts The Onion Router daemon Jan 22 09:06:23 rpi4tor systemd[1]: Started LSB: Starts The Onion Router daemon Jan 22 09:08:32 rpi4tor systemd[1]: Stopping LSB: Starts The Onion Router daemon Jan 22 09:08:32 rpi4tor systemd[1]: tor.service: Succeeded. Jan 22 09:08:32 rpi4tor systemd[1]: Stopped LSB: Starts The Onion Router daemon lines 1-6/6 (END)...skipping... -- Logs begin at Thu 2019-02-14 11:11:59 CET, end at Fri 2021-01-22 11:54:47 CET. -- Jan 22 09:06:23 rpi4tor systemd[1]: Starting LSB: Starts The Onion Router daemon processes... Jan 22 09:06:23 rpi4tor systemd[1]: Started LSB: Starts The Onion Router daemon processes. Jan 22 09:08:32 rpi4tor systemd[1]: Stopping LSB: Starts The Onion Router daemon processes... Jan 22 09:08:32 rpi4tor systemd[1]: tor.service: Succeeded. Jan 22 09:08:32 rpi4tor systemd[1]: Stopped LSB: Starts The Onion Router daemon processes.
_My second attempt was:_
I changed the user of all tor files to the current user "pi". After that I was able to start tor with "tor --quiet" as user "pi". All went fine until I rebooted the system and all my changes to "pi" where changed to "debian-tor".
_My third attempt was:_
I did "sudo tor --quiet". It works, but in "notices.log" is the information that I shouldn't do that.
So, now I am standing here and don't know what to do. I would like to start tor via systemd but I don't know what's wrong (maybe the permissions). Does someone has a hint for me?
regards, Karl
tor-relays@lists.torproject.org