summaryrefslogtreecommitdiffstats
path: root/mattermost.go
diff options
context:
space:
mode:
Diffstat (limited to 'mattermost.go')
-rw-r--r--mattermost.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/mattermost.go b/mattermost.go
index 1b93fe8df..1f0325b79 100644
--- a/mattermost.go
+++ b/mattermost.go
@@ -149,12 +149,20 @@ func main() {
complianceI.StartComplianceDailyJob()
}
+ if einterfaces.GetClusterInterface() != nil {
+ einterfaces.GetClusterInterface().StartInterNodeCommunication()
+ }
+
// wait for kill signal before attempting to gracefully shutdown
// the running service
c := make(chan os.Signal)
signal.Notify(c, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
<-c
+ if einterfaces.GetClusterInterface() != nil {
+ einterfaces.GetClusterInterface().StopInterNodeCommunication()
+ }
+
api.StopServer()
}
}