I added the following line in my /etc/inittab to respawn a program if it crashes.
#test must always run.
aa:2345:respawn:/home/pi/test/test
Is there a way to know how many times the init/respawn event occurs ? Is there a log file for inittab ?
I'm using Raspbian Wheezy and Ubuntu 14.04.