Revert "Moved old pid managment to deploy.cc code."

This reverts commit dda3727b3326d0aa995ca009a4312271bd61b4aa.