diff --git a/production/mempool-logger b/production/mempool-logger new file mode 100755 index 000000000..201115df3 --- /dev/null +++ b/production/mempool-logger @@ -0,0 +1,7 @@ +#!/bin/sh +trap "" PIPE +while read input;do + if [ ! -z "${input}" ];then + echo "\`\`\`${input}\`\`\`" | /usr/local/bin/keybase chat send --nonblock mempool.syslog + fi +done diff --git a/production/syslog.conf b/production/syslog.conf new file mode 100644 index 000000000..513663629 --- /dev/null +++ b/production/syslog.conf @@ -0,0 +1,3 @@ +local7.debug /var/log/mempool.debug +local7.info /var/log/mempool +local7.notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger