checkproc now supports scripts by using pidof -x
Improce checkproc generation