2 of 2 code formatting

I think the primary cause is "exec" call in your "start" section. Could you add to trap "rm -f /var/run/streamman/out" EXIT string something like:

; ps ax | kill `awk '$5 ~ /nc -l 8080/ {print $1}`

I understand this is a dirty workaround...