blob: 87539f49f752b844000b745430a790286aad6dd8 (
plain)
1
2
3
4
5
6
7
8
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
'
|