summaryrefslogtreecommitdiff
path: root/contrib/process_log.sh
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-05-19 14:43:13 +0000
committerNils Gillmann <ng0@n0.is>2018-05-19 14:43:13 +0000
commit6ab60d4920bb3199aee8cd872b930e9e3e808ba7 (patch)
tree3d761dbf8793a1d2422fbd14667255c7e0292ea4 /contrib/process_log.sh
parentc2f27dfe8218545c327ab49d225a49910347c5c6 (diff)
Restructure contrib folder.
contrib/pogen.sh -> bin/pogen.sh bootstrap: Use new pogen location and execute it. contrib/openvpn-tap32: Move to contrib/3rdparty/Windows/openvpn-tap32. contrib/gnunet-logo*: Move to contrib/branding/logo/ Delete old patches in contrib, predating git. Move buildbot data to contrib/ci/buildbot, move docker data to contrib/ci/docker. Create contrib/conf and populate it with config files found in contrib and bin. Move gns related data to contrib/gns. delete contrib/repeat.sh Move contrib/log.php into contrib/web/log.php. Create folder contrib/scripts and use it for most scripts in contrib. Remove trailing whitespace in doc/Makefile.am Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'contrib/process_log.sh')
-rwxr-xr-xcontrib/process_log.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/contrib/process_log.sh b/contrib/process_log.sh
deleted file mode 100755
index c25c515c2..000000000
--- a/contrib/process_log.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-# Usage: service should print "STARTING SERVICE (srvc) for peer [PEER]" where:
-# - "srvc" is the service name (in lowercase, as in the log output).
-# It cannot contain parenthesis in its name.
-# - "PEER" is the peer ID. Should be 4 alfanumeric characters
-
-grep "STARTING SERVICE " log > __tmp_peers
-
-SED_EXPR=""
-while read -r line; do
- SRVC=`echo "$line" | sed -e 's/.*(\([^)]*\)).*/\1/'`
- PEER=`echo "$line" | sed -e 's/.*\[\(....\)\].*/\1/'`
- PID=`echo "$line" | sed -e "s/.*$SRVC-\([0-9]*\).*/\1/"`
- echo "$SRVC $PID => $PEER"
-
- SED_EXPR="${SED_EXPR}s/$SRVC-\([a-z2]*\)-$PID/$SRVC \1 $PEER/;"
- SED_EXPR="${SED_EXPR}s/$SRVC-$PID/$SRVC XXX $PEER/;"
- SED_EXPR="${SED_EXPR}s/$SRVC-api-[0-9]/$SRVC-api- /;"
-done < __tmp_peers
-rm __tmp_peers
-
-sed -e "$SED_EXPR" log > .log
-echo "$0 sed regex: $SED_EXPR" >> .log
-
-SIZE=`stat -c%s .log`
-
-if [[ "`ps aux | grep "kwrite .lo[g]"`" = "" && "$SIZE" < 10000000 ]]; then
- kwrite .log --geometry 960x1140-960 &
-fi