Write out a pid for unicorn and use that to determine what to do