0

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.

ssinfod
  • 113
  • 1
  • 4

1 Answers1

0

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.

Joe
  • 63
  • 6