prevent from registering broken services

This commit is contained in:
A.Unger
2019-12-12 09:53:43 +01:00
parent 7fd9b8ac14
commit 0695c25089
4 changed files with 16 additions and 20 deletions
+4 -5
View File
@@ -11,7 +11,6 @@ import (
"github.com/owncloud/ocis-konnectd/pkg/metrics"
"github.com/owncloud/ocis-konnectd/pkg/server/http"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// KonnectdCommand is the entrypoint for the konnectd command.
@@ -78,7 +77,7 @@ func configureKonnectd(cfg *config.Config) *svcconfig.Config {
return cfg.Konnectd
}
func init() {
register.AddCommand(KonnectdCommand)
register.AddHandler(KonnectdHandler)
}
// func init() {
// register.AddCommand(KonnectdCommand)
// register.AddHandler(KonnectdHandler)
// }
+4 -5
View File
@@ -11,7 +11,6 @@ import (
"github.com/owncloud/ocis-ocs/pkg/metrics"
"github.com/owncloud/ocis-ocs/pkg/server/http"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// OCSCommand is the entrypoint for the ocs command.
@@ -78,7 +77,7 @@ func configureOCS(cfg *config.Config) *svcconfig.Config {
return cfg.OCS
}
func init() {
register.AddCommand(OCSCommand)
register.AddHandler(OCSHandler)
}
// func init() {
// register.AddCommand(OCSCommand)
// register.AddHandler(OCSHandler)
// }
+4 -5
View File
@@ -11,7 +11,6 @@ import (
"github.com/owncloud/ocis-phoenix/pkg/metrics"
"github.com/owncloud/ocis-phoenix/pkg/server/http"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// PhoenixCommand is the entrypoint for the phoenix command.
@@ -78,7 +77,7 @@ func configurePhoenix(cfg *config.Config) *svcconfig.Config {
return cfg.Phoenix
}
func init() {
register.AddCommand(PhoenixCommand)
register.AddHandler(PhoenixHandler)
}
// func init() {
// register.AddCommand(PhoenixCommand)
// register.AddHandler(PhoenixHandler)
// }
+4 -5
View File
@@ -11,7 +11,6 @@ import (
"github.com/owncloud/ocis-webdav/pkg/metrics"
"github.com/owncloud/ocis-webdav/pkg/server/http"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// WebDAVCommand is the entrypoint for the webdav command.
@@ -78,7 +77,7 @@ func configureWebDAV(cfg *config.Config) *svcconfig.Config {
return cfg.WebDAV
}
func init() {
register.AddCommand(WebDAVCommand)
register.AddHandler(WebDAVHandler)
}
// func init() {
// register.AddCommand(WebDAVCommand)
// register.AddHandler(WebDAVHandler)
// }