Add mempool-logger script and syslog.conf configuration to log to it

This commit is contained in:
wiz committed 2020-10-13 19:16:09 +09:00
1 parent b98b979dc8
commit cbcfbe5b36
2 files changed
+10

No files matched your search

+7
View File
@@ -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
+3
View File
@@ -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