I've successfully set several perl scripts to run as services/daemons in centos5-ish. I can issue the following:
service [servicename] start
service [servicename] stop
and the scripts will fire up, or shut down accordingly. Problem: they're running as the root user context. How do I get them to run as an unprivileged user? Is setuid the way to go? Or will that not work, or is there some other/better way?