Add mempool-logger script and syslog.conf configuration to log to it
This commit is contained in:
		
							parent
							
								
									b98b979dc8
								
							
						
					
					
						commit
						cbcfbe5b36
					
				
							
								
								
									
										7
									
								
								production/mempool-logger
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										7
									
								
								production/mempool-logger
									
									
									
									
									
										Executable 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
									
								
								production/syslog.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								production/syslog.conf
									
									
									
									
									
										Normal 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
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user