my solution is not specific to app servers, you can write a watchdog to monitor your process and start that as a cronjob. this is a generic solution, cause your app server might go down and whatever listener you have might never get notified