Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542464 - net-misc/tor-0.2.5.10-r3 the service fails to reload with "systemctl reload tor"
Summary: net-misc/tor-0.2.5.10-r3 the service fails to reload with "systemctl reload tor"
Status: RESOLVED DUPLICATE of bug 534014
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-07 19:24 UTC by Łukasz Stelmach
Modified: 2015-03-08 00:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Add CAP_KILL to the CapabilityBoundingSet (tor.service.diff,415 bytes, patch)
2015-03-07 19:24 UTC, Łukasz Stelmach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Stelmach 2015-03-07 19:24:16 UTC
"systemctl reload tor" fails. stracing shows that kill(2) returns EPERM. A way I have found to fix/work-around this issue is add CAP_KILL to CapabilityBoundingSet in the tor.service file (see the patch).

● tor.service - The Onion Router
   Loaded: loaded (/etc/systemd/system/tor.service; disabled)
   Active: active (running) (Result: exit-code) since sob 2015-03-07 20:01:34 CET; 6min ago
  Process: 8588 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=1/FAILURE)
 Main PID: 8481 (tor)
   CGroup: /system.slice/tor.service
           └─8481 /usr/bin/tor --RunAsDaemon 0 -f /etc/tor/torrc

mar 07 20:01:45 kotik Tor[8481]: Caching new entry tor for tor
mar 07 20:01:45 kotik Tor[8481]: Caching new entry tor for tor
mar 07 20:01:45 kotik systemd[1]: Reloaded The Onion Router.
mar 07 20:01:52 kotik Tor[8481]: Bootstrapped 90%: Establishing a Tor circuit
mar 07 20:02:46 kotik Tor[8481]: No circuits are opened. Relaxed timeout for circuit 13 (a Gene...ive.
mar 07 20:02:54 kotik Tor[8481]: Tor has successfully opened a circuit. Looks like client funct...ing.
mar 07 20:02:54 kotik Tor[8481]: Bootstrapped 100%: Done
mar 07 20:07:09 kotik systemd[1]: Reloading The Onion Router.
mar 07 20:07:09 kotik systemd[1]: tor.service: control process exited, code=exited status=1
mar 07 20:07:09 kotik systemd[1]: Reload failed for The Onion Router.


Reproducible: Always
Comment 1 Łukasz Stelmach 2015-03-07 19:24:54 UTC
Created attachment 398320 [details, diff]
Add CAP_KILL to the CapabilityBoundingSet
Comment 2 Anthony Basile gentoo-dev 2015-03-07 23:53:41 UTC

*** This bug has been marked as a duplicate of bug 534014 ***
Comment 3 Anthony Basile gentoo-dev 2015-03-08 00:01:08 UTC
(In reply to Anthony Basile from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 534014 ***

Actually I'm not 100% sure this is a dup.  Nonetheless, I think its fixed in 0.2.6.3.  Can you please test.