Process monitors itself, restarts if it faults, preserves logs

and cores. Rate-limiting for safety.
This commit is contained in:
JoelKatz
2013-03-20 06:33:29 -07:00
parent 0e34de512e
commit c5429032ed
4 changed files with 88 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ bool Instance::running = true;
void Application::stop()
{
cLog(lsINFO) << "Received shutdown request";
StopSustain();
mShutdown = true;
mIOService.stop();
mHashedObjectStore.bulkWrite();