summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-08 16:36:21 +0300
committerValery Piashchynski <[email protected]>2020-03-08 16:36:21 +0300
commitec846d99cc218a2c99c2358920ab4595b4b5ea7c (patch)
treef0dfe0fd3c0881127914ac14fff71f5e0ea33d3f /service/container.go
parentbcaa85eba41c0c723c6330f7cdb52cab11b049d7 (diff)
Add BORS to repo
Remove signal handling in Serve for dev
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/service/container.go b/service/container.go
index c83ce64b..18d3ec3b 100644
--- a/service/container.go
+++ b/service/container.go
@@ -4,11 +4,8 @@ import (
"fmt"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
- "os"
- "os/signal"
"reflect"
"sync"
- "syscall"
)
var errNoConfig = fmt.Errorf("no config has been provided")
@@ -169,9 +166,6 @@ func (c *container) Init(cfg Config) error {
// Serve all configured services. Non blocking.
func (c *container) Serve() error {
- cc := make(chan os.Signal, 1)
- signal.Notify(cc, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
-
for _, e := range c.services {
if e.hasStatus(StatusOK) && e.canServe() {
c.log.Debugf("[%s]: started", e.name)
@@ -195,8 +189,6 @@ func (c *container) Serve() error {
for {
select {
- case <-cc:
- return nil
case fail := <-c.errc:
if fail.err == errTempFix223 {
return nil