diff --git a/production/mempool-logger b/production/mempool-logger index f30b178f9d..100ea2176c 100755 --- a/production/mempool-logger +++ b/production/mempool-logger @@ -2,6 +2,6 @@ trap "" PIPE while read input;do if [ ! -z "${input}" ];then - echo "\`\`\`${input}\`\`\`" | /usr/local/bin/keybase chat send --nonblock --channel "$1" mempool.devops + echo "\`\`\`${input}\`\`\`" | /usr/local/bin/keybase chat send --nonblock --channel "$1" "$2" fi done diff --git a/production/mempool-restart-all b/production/mempool-restart-all index e68564ca3b..e1867a77aa 100755 --- a/production/mempool-restart-all +++ b/production/mempool-restart-all @@ -1,7 +1,8 @@ #!/usr/bin/env zsh +HOSTNAME=$(hostname) -echo restarting all mempool backends | wall -echo restarting all mempool backends | logger -t mempool -p local7.notice +echo restarting mempool backends | wall +echo "${HOSTNAME} restarted mempool backends" | /usr/local/bin/keybase chat send --nonblock --channel general mempool.devops ps uaxw|grep 'dist/index'|grep -v grep|grep -v services|awk '{print $2}'|xargs -n 1 kill exit 0 diff --git a/production/syslog.conf b/production/syslog.conf index 1f33ce3436..025ace3594 100644 --- a/production/syslog.conf +++ b/production/syslog.conf @@ -1,4 +1,4 @@ -local7.>=notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger ops -local7.info |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger node100 +local7.>=notice |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger mempool.devops general +local7.info |/usr/local/bin/sudo -u mempool /usr/local/bin/mempool-logger mempool.devops node100 local7.info /var/log/mempool local7.* /var/log/mempool.debug