Add tor.service (for systemd) to upstream package
In Fedora we have a custom systemd service file for running Tor. We are encouraged to push changes upstream, and thus I am proposing that it be included as part of the upstream tarball. I have pasted the contents below, but please do advise on whether this can be improved:
$ cat tor.service [Unit] Description = Anonymizing overlay network for TCP After = syslog.target network.target nss-lookup.target
[Service] Type = simple ExecStart = /usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc --quiet ExecReload = /bin/kill -HUP ${MAINPID} ExecStop = /bin/kill -INT ${MAINPID} TimeoutSec = 30 Restart = on-failure LimitNOFILE = 4096
[Install] WantedBy = multi-user.target
Trac:
Username: jamielinux