summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-11-04 14:43:58 +0100
committermakefu <github@syntax-fehler.de>2011-11-04 14:43:58 +0100
commit0dd85c8b1acaebb18a648b0c0b5d4c48b69903d9 (patch)
tree07afc6e50255cfc52acbd9d59c664806dbb18b50 /retiolum/scripts/adv_graphgen
parent193eaae037623b8843449114a22fc9a25778bcc5 (diff)
//retiolum/adv_graphgen: tinc_stats now invokes USR2 against tinc deamon
Diffstat (limited to 'retiolum/scripts/adv_graphgen')
-rwxr-xr-xretiolum/scripts/adv_graphgen/tinc_stats.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats.py b/retiolum/scripts/adv_graphgen/tinc_stats.py
index fb238abe..21d03cc4 100755
--- a/retiolum/scripts/adv_graphgen/tinc_stats.py
+++ b/retiolum/scripts/adv_graphgen/tinc_stats.py
@@ -76,4 +76,7 @@ def parse_input(log_data):
if __name__ == '__main__':
+ import subprocess,time
+ subprocess.popen("pkill -SIGUSR2 tincd")
+ time.sleep(1)
print json.dumps(parse_input((get_tinc_block(SYSLOG_FILE))))