This sounds like what Edgar needs.
quote from the laconica2IRC perl script comments:
# All that remained to do was to launch the script in a sane way. To control # this sort of simple and permanently executed piece of code and keep it from # misbehaving, Daemon is a good way. Available in Debian, it proved its worth # when the RSS file went missing during the Identi.ca upgrade and the script # crashed everytime it tried to access it for lack of exception catching. Had I # simply put it in an infinite loop, it would have hogged significant # ressources just by running in circles like a headless chicken. Daemon not # only restarted it after each crash, but also killed it after a set number of # retries in a set duration - thus preventing any interference with the rest of # what runs on our server. Here is the Daemon launch command that I have used : # # #!/bin/bash # path=/usr/local/bin/laconica2IRC # daemon -a 16 -L 16 -M 3 -D $path -N -n laconica2IRC_JML -r -O $path/laconica2IRC.log -o $path/laconica2IRC.log $path/laconica2IRC.pl #