I added the following line in my /etc/inittab to respawn a program if it crashes.

#test must always run.

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.


Not sure if this directly solves your problem, but you could use something like supervisord activity logging for desired outcome. http://supervisord.org/logging.html#activity-log

Other process supervisors like daemontools and monit might also have this functionality.

Not the answer you're looking for? Browse other questions tagged or ask your own question.