[tor-bugs] #8368 [Tor]: Add tor.service (for systemd) to upstream package

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 28 23:58:51 UTC 2013


#8368: Add tor.service (for systemd) to upstream package
-------------------------+--------------------------------------------------
 Reporter:  jamielinux   |          Owner:     
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:     
Component:  Tor          |        Version:     
 Keywords:               |         Parent:     
   Points:               |   Actualpoints:     
-------------------------+--------------------------------------------------
 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

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8368>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list