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

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Mar 1 00:29:00 UTC 2013


#8368: Add tor.service (for systemd) to upstream package
-------------------------+--------------------------------------------------
 Reporter:  jamielinux   |          Owner:                    
     Type:  enhancement  |         Status:  needs_review      
 Priority:  minor        |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor          |        Version:                    
 Keywords:  tor-relay    |         Parent:                    
   Points:               |   Actualpoints:                    
-------------------------+--------------------------------------------------

Comment(by jamielinux):

 > If we're going to ship this with Tor, it should probably
 > have a comment at the top explaining what it is and how
 > to use it.

 Sure. Something like:

 # This is a service file for use with the systemd init daemon. It should
 be
 # placed with other systemd units, usually at
 /usr/lib/systemd/system/tor.service


 > I'm not very knowledgeable about how Unixes launch things nowadays
 > -- is this Fedora-specific, or will this file work with lots of
 > other systems?

 It should work with any other distribution that has implemented systemd,
 which now includes Arch Linux (default init), OpenSUSE (default init in
 12.1), soon Mageia (will be default init from version 3) and probably
 others.


 > (If the latter, has anybody else written a systemd file that we
 > could also look at to see if it has any ideas that this one might
 > be missing?)

 Yes that's a good idea. The Arch Linux one is here:
 https://projects.archlinux.org/svntogit/community.git/tree/trunk/tor.service?h=packages/tor

 They do things a bit differently but dropping the service file proposed
 here into Arch Linux would work fine, and vice versa.

 I'm also not sure what the best value for LimitNOFILE is yet. The sysv
 initscripts distributed at the moment have some logic to raise ulimit
 based on the file descriptors available.

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


More information about the tor-bugs mailing list