[tor-bugs] #19016 [Metrics/CollecTor]: add shutdown hook

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 11 14:43:16 UTC 2016


#19016: add shutdown hook
-------------------------------+-----------------------------------
 Reporter:  iwakeh             |          Owner:  iwakeh
     Type:  enhancement        |         Status:  needs_information
 Priority:  Medium             |      Milestone:
Component:  Metrics/CollecTor  |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:  ctip               |  Actual Points:
Parent ID:                     |         Points:
 Reviewer:                     |        Sponsor:
-------------------------------+-----------------------------------

Comment (by karsten):

 Oh wow, that's actually a tough question.  And I think the answer depends
 on how modules are started (cron vs. internal scheduler), how that
 scheduler is started (cron vs. service script) and stopped (kill vs.
 service script), and so on.  For example, I could imagine using a shutdown
 hook to release a lock file, but it might be that we don't need a lock
 file anymore once we switch to a service script.

 One thing about reasons for shutdown: I don't think we can do anything
 useful in case of a corrupt or full disk.  We should probably focus on
 system maintenance here.  And doing that would be great, because then our
 sysadmins could simply install updates and reboot hosts whenever they need
 to.

 How about we postpone this discussion until those other changes are
 implemented?  I think we can do some good things with shutdown hooks, so I
 don't suggest closing this issue.  But I think I can contribute more to
 this discussion in a month or two.

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


More information about the tor-bugs mailing list