From 849442502c04a90e089f7922d71c9cd168f16eb6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 27 Feb 2019 09:28:15 -0500 Subject: [PATCH] add support for server based zmeventnotification --- scripts/zmpkg.pl.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/zmpkg.pl.in b/scripts/zmpkg.pl.in index 167943952..eaa772045 100644 --- a/scripts/zmpkg.pl.in +++ b/scripts/zmpkg.pl.in @@ -277,7 +277,11 @@ if ( $command =~ /^(?:start|restart)$/ ) { runCommand('zmdc.pl start zmtelemetry.pl'); } if ($Config{ZM_OPT_USE_EVENTNOTIFICATION} ) { + if ( $Server and exists $$Server{'zmeventnotification'} and ! $$Server{'zmeventnotification'} ) { + Debug("Not running zmnotification.pl because it is turned off for this server."); + } else { runCommand('zmdc.pl start zmeventnotification.pl'); + } } if ( $Server and exists $$Server{'zmstats'} and ! $$Server{'zmstats'} ) { Debug("Not running zmstats.pl because it is turned off for this server.");