You could create a script that:
1) emails you, saying "starting app @ $(date).."
2) starts your app.
Then add a reference to this script in /etc/inittab.
You'll want to create a script that checks your process every few minutes.... or however often you want.
1. Check the process
2. Start it if isn't running ; do nothing if it is
3. send an email or creating a log saying the process was restarted
4. Put your new "listener" script into crontab to run every few minutes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.