Menu

#21 Graceful shutdown

R1
open
nobody
daemon (16)
daemon
enhancement
5
2013-05-21
2013-03-16
No

I want opennopd to shutdown properly. Currently the only way to shutdown is to kill the process. Currently it's impossible to break out of the recv() in fetcher.c. I was able to find an example how to do this by making the "h" and "qh" global variables then closing them. This I think forces recv() to return -1 breaking the loop.
http://www.auroragrp.com/agi/nfq_sniff.c

There should be some "wait time" while things properly shutdown. This would include:

  1. Stopping new session records from being created.
  2. Draining the worker packet queues.
  3. Stopping all optimizations
  4. Merging TCP flows back with un-optimized streams
  5. Turning off packet interceptor module.
  6. Draining netfilter queue and closing application.

Discussion

  • Justin Yaple

    Justin Yaple - 2013-03-16

    Here is a copy of the linked example.

     
  • Justin Yaple

    Justin Yaple - 2013-03-19
    • milestone: Alpha --> R1
     
  • Justin Yaple

    Justin Yaple - 2013-03-20
    • labels: --> daemon
     
  • Justin Yaple

    Justin Yaple - 2013-05-21
    • Component: --> daemon
    • Category: --> enhancement
     
Monday.com Logo