in reply to Simple perl daemon with limited number of children to fork
Have you had a look at the documentation (or source code of) Parallel::ForkManager? Or maybe Daemon? Where exactly do you have problems?