From 3af725c6f562a79b6db4d95b870070e8805cd2bc Mon Sep 17 00:00:00 2001 From: Alexis Peter Date: Mon, 2 Feb 2015 13:46:22 +0100 Subject: [PATCH] keep daemon processes alive - do not track them in newrelic --- library/CM/Elasticsearch/Index/Cli.php | 3 +++ library/CM/Maintenance/Cli.php | 4 ++++ library/CM/Stream/Cli.php | 1 + 3 files changed, 8 insertions(+) diff --git a/library/CM/Elasticsearch/Index/Cli.php b/library/CM/Elasticsearch/Index/Cli.php index fc1f2bcae..42a856b5a 100644 --- a/library/CM/Elasticsearch/Index/Cli.php +++ b/library/CM/Elasticsearch/Index/Cli.php @@ -83,6 +83,9 @@ public function optimize() { } } + /** + * @keepalive + */ public function startMaintenance() { $clockwork = new CM_Clockwork_Manager(); $storage = new CM_Clockwork_Storage_FileSystem('search-maintenance'); diff --git a/library/CM/Maintenance/Cli.php b/library/CM/Maintenance/Cli.php index 9a84cb771..0dadc810a 100644 --- a/library/CM/Maintenance/Cli.php +++ b/library/CM/Maintenance/Cli.php @@ -7,6 +7,7 @@ class CM_Maintenance_Cli extends CM_Cli_Runnable_Abstract { /** * @synchronized + * @keepalive */ public function start() { $this->_clockworkManager = new CM_Clockwork_Manager(); @@ -17,6 +18,9 @@ public function start() { $this->_clockworkManager->start(); } + /** + * @keepalive + */ public function startLocal() { $this->_clockworkManager = new CM_Clockwork_Manager(); $storage = new CM_Clockwork_Storage_FileSystem('app-maintenance-local'); diff --git a/library/CM/Stream/Cli.php b/library/CM/Stream/Cli.php index 09af14581..4b129ac62 100644 --- a/library/CM/Stream/Cli.php +++ b/library/CM/Stream/Cli.php @@ -4,6 +4,7 @@ class CM_Stream_Cli extends CM_Cli_Runnable_Abstract { /** * @synchronized + * @keepalive */ public function startMessageSynchronization() { CM_Stream_Message::getInstance()->startSynchronization();