Revert "write pid file"

This reverts commit 93341949103514bf88684a205458210bd4faf13a.