You have a Linux program, that doesn't do it's job. It just silently exits. How would you go about finding out what's wrong?
Sigiloso
First thing that i need to do is to view log files (for example, if this program runs under debian first log who I will open is /var/log/daemon.log), then I will see in what moment she will fail, and I will decide how to fix the problem.