save pid file for mon not pid for child process