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
Post a Comment