summaryrefslogtreecommitdiffstats
path: root/retiolum/bin
diff options
context:
space:
mode:
authortv <tv@iiso>2012-12-06 15:39:55 +0100
committertv <tv@iiso>2012-12-06 15:39:55 +0100
commit53cfad1bcfe41fa1f7d8e12ffc5b0f992b2fbc0f (patch)
tree8d4a403079bf28b5f0608a86a65f0246218602af /retiolum/bin
parent1fa6c7a186a97f833028e4dcb4ec63d631cffa22 (diff)
//retiolum/bin/dump-graph: get graph from journald
Diffstat (limited to 'retiolum/bin')
-rwxr-xr-xretiolum/bin/dump-graph9
1 files changed, 9 insertions, 0 deletions
diff --git a/retiolum/bin/dump-graph b/retiolum/bin/dump-graph
new file mode 100755
index 00000000..87539f49
--- /dev/null
+++ b/retiolum/bin/dump-graph
@@ -0,0 +1,9 @@
+#! /bin/sh
+set -euf
+
+t0="`date '+%Y-%m-%d %H:%M:%S'`"
+systemctl kill --signal=USR2 tincd@retiolum
+sleep 5
+journalctl --since="$t0" | sed -n '
+ s/.*tinc\.retiolum\[[0-9]\+\]: \([^ ]\+\) to \([^ ]\+\) at \([^ ]\+\) .*$/\1 \2 \3/p
+'