Add methods to associate index with worker pid. They will be used to
output pid file for each workers.
Output pidfiles for child workers. This helps to monitor child
workers with Monit etc.