Skip to content
Permalink
b5f1da16ed
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 24 lines (20 sloc) 514 Bytes
#!/bin/sh
setupPipe() {
if [ -e $1 ]; then
rm $1
fi
mkfifo -m 666 $1
}
setupLoggingPipe() {
# Make a "console" logging pipe that anyone can write too regardless of who owns the process.
setupPipe /tmp/logpipe
cat <> /tmp/logpipe &
}
# Make a formatted stream to the logging pipe from rabbitmq
setupRabbitmqLog() {
(tail -F /tmp/lograbbitmq | sed -u -r "s/^/rabbitmq\;console\;$ENV\;$USERTOKEN\;/" > /tmp/logpipe) &
}
prepConf() {
setupLoggingPipe
setupRabbitmqLog
}