Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Add support for federation sender
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Nov 21, 2016
1 parent 120ece5 commit c4cd71b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/github.com/matrix-org/dendron/dendron/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ var (
mediaRepositoryURLStr = flag.String("media-repository-url", "", "The HTTP URL that the media repository will listen on")
clientReaderConfig = flag.String("client-reader-config", "", "Client reader worker config")
clientReaderURLStr = flag.String("client-reader-url", "", "The HTTP URL that the client reader will listen on")
federationSenderConfig = flag.String("federation-sender-config", "", "Federation sender worker config")

logDir = flag.String("log-dir", "var", "Logging output directory, Dendron logs to error.log, warn.log and info.log in that directory")
)
Expand Down Expand Up @@ -337,6 +338,22 @@ func main() {
defer cleanup()
}

if *federationSenderConfig != "" {
processLog, cleanup, err := startProcess(
"federation_sender", nil, terminate,
*synapsePython,
"-m", "synapse.app.federation_sender",
"-c", *synapseConfig,
"-c", *federationSenderConfig,
)

if err != nil {
processLog.Panic(err)
}

defer cleanup()
}

synapseLog.Print("Synapse started")
} else {
synapseLog.Print("Using existing synapse")
Expand Down

0 comments on commit c4cd71b

Please sign in to comment.