阅读背景:

如何在Ubuntu中运行Qt程序作为服务?

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: