linux - How to monitor c++ daemon process? -


i develop 1 daemon tcp server boost asio, want know there daemon manager lib monitor process, if server process dead, manager can restart it

you try use powerfull daemontools manage everything. these tools allow in grained monitoring, restarting etc.

if don't need power following shell-script enough:

while true;    $process    sleep $sleep_time done 

this takes care of restarting system when crashes, there not , if need additions out of luck.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -