From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eb0f82e3773042f9,start X-Google-Attributes: gidfee84,public From: jlutz@atqm.advtech.uswest.com (jeff lutz) Subject: How do I keep a process alive Date: 1995/07/05 Message-ID: #1/1 X-Deja-AN: 105619492 organization: U S WEST Technologies followup-to: comp.unix.osf.osf1 newsgroups: comp.unix.osf.osf1 I am looking for the appropriate way to ensure that a process (RPC server application) is kept alive on a DEC Alpha running OSF/1. Separate instances of this application may be instantiated by multiple users using difference RPC program numbers. I have implemented an echo procedure that can be used to see if a particular instance of the program is executing. Should I use 1) crontab in conjunction with the echo procedure. For example, execute procedure echo every minute and restart the RPC server if it fails, 2) a separate keep-alive daemon that uses the echo procedure and restarts the application if the echo fails or 3) should I use something else? Is there a generally accepted or practiced method that you can suggest? Thanks, Jeff Lutz