# $Id: TODO,v 1.1 2010/11/17 18:04:47 ksb Exp $ The daemon code needs a helper program to restart a process that exit's after some number of iterations. For example the poller for a disk array. If that program understands some common signal protocols (viz. HUP to restart and passing USR1/USR2) then we can record the pid of the restarter process as the pid of the service (as long as the termination script doesn't send a KILL (9) as the first step in termination. The options for the restarter should include a sleep delay between executions, a set of exit codes that trigger a failure, what to do on a signal exit, and a failed execve. I'm not sure exactly how useful this is in general, but the script I use as a substitute is "yes | xapply -f '%0...' - " which is not very cool. --ksb, Nov 2010