systemd service file use incorrect network target
Summary
The service file use the target network.target instant of network-online.target.
Steps to reproduce:
- Enable the tor service
- restart the server
What is the current bug behavior?
Tor don't start at the first try. Up to 5 times it will be restarted until it runs.
What is the expected behavior?
That the service will starts after the network-online.target is reached, because only now all ip addresses of the system are set.
Environment
- Which version of Tor are you using? Run
tor --version
to get the version if you are unsure. tor-0.4.7.10-1.el9.x86_64 - Which operating system are you using? For example: Debian GNU/Linux 10.1, Windows 10, Ubuntu Xenial, FreeBSD 12.2, etc. Rocky Linux release 9.0 (Blue Onyx)
- Which installation method did you use? Distribution package (apt, pkg, homebrew), from source tarball, from Git, etc. The rpm package from the tor repos.
Relevant logs and/or screenshots
Possible fixes
Simple modify the after target from network.target to network-online.target in the service file.