I've written a C++ console application using Qt for an embedded board, I've put the binary file of the program in the startup of the Ubuntu. So whenever the system reboots, My applications starts to work. But sometimes the application crashes and I don't know why !!! I don't want my system to be idle in these situations. Since I want my program to restart after sudden crashing I thought of two possible solutions: 1. use a hardware watchdog timer, so whenever I reset the timer, the system goes on ... or 2. set my application as an Ubuntu service so in case of crashing it will restart it or it might reboot the system so my application starts again.I've written a C++ console application using Qt