Peter Palfrader <wea...@debian.org> writes: > On Wed, 06 May 2015, Arto Jantunen wrote: >> I was planning to move to Type=notify + User=debian-tor + >> RuntimeDirectory=/var/run/tor in the service file, and a separate >> config instead of the current tor-service-defaults-torrc (without >> PidFile, RunAsDaemon and User) as the next step after that. > > I assume moving the User to the service file would work only because we > give Tor CAP_NET_BIND_SERVICE, right?
Yes, that would be the plan. I haven't tested this (yet), though. > Why would we want to set RuntimeDirectory? If User is set in the service file instead of torrc that would work, and would liberate us from needing to manually do the same thing with ExecStartPre. > Having Type=notify instead of simple will require modifying Tor > accordingly, correct? Nope, all of the changes are there upstream. Enabling it requires adding a build-dep on libsystemd-dev, though (this one I have tested). > Also, purely stylistic, I think I'd prefer we make our own service file > in debian/ rather than patching upstream's. Oh, ok. I'll switch to that instead. -- Arto Jantunen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org