saltstack/salt — pull request #902 by vittyvk (2012-03-14 12:04:10+00:00)
Title: Develop

Handle pidfiles in a bit more standard way:
1) Do not write multiple master pid's into pidfile (it's very uncommon to do so, many initscript tools can't handle this)
2) If we are switching from root to user we must write pidfiles under root as files in /var/run/... are usualy owned by root.