This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Logs the queued and active stats from the application's sockets and posts to statsd | |
while true; do | |
proc_lines=`cat /proc/net/unix` | |
for file in /home/deploy/myapp/tmp/sockets/*.sock; do | |
# /proc/net/unix lines are of the format: |