title: How to run a Qt program as a service in Ubuntu?
body: <p>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.</p>
  
  <p>the first one is not presented in my board and I don't want to use an external watchdog timer so I wonder if I could do the latter !</p>
  
  <p>P.S.
  a software watchdog timer is not reliable so plz don't propose to use a software WD timer !!!
  What do you think ? what Can I do ?
  Thanks </p>