Add flag to agent to write pid file
Add pid-file option to agent docs