2019-02-14 01:32:27 +01:00
|
|
|
# hook2xmpp
|
2019-06-18 01:16:46 +02:00
|
|
|
|
|
|
|
|
2019-08-08 15:49:25 +02:00
|
|
|
[![pipeline status](https://dev.sum7.eu/sum7/hook2xmpp/badges/master/pipeline.svg)](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
|
|
|
[![coverage report](https://dev.sum7.eu/sum7/hook2xmpp/badges/master/coverage.svg)](https://dev.sum7.eu/genofire/hook2xmpp/pipelines)
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/dev.sum7.eu/sum7/hook2xmpp)](https://goreportcard.com/report/dev.sum7.eu/genofire/hook2xmpp)
|
|
|
|
[![GoDoc](https://godoc.org/dev.sum7.eu/sum7/hook2xmpp?status.svg)](https://godoc.org/dev.sum7.eu/genofire/hook2xmpp)
|
2019-02-14 01:32:27 +01:00
|
|
|
|
2019-02-14 05:05:03 +01:00
|
|
|
|
|
|
|
## Get hook2xmpp
|
|
|
|
|
|
|
|
#### Download
|
|
|
|
|
|
|
|
Latest Build binary from ci here:
|
|
|
|
|
2019-08-08 15:49:25 +02:00
|
|
|
[Download All](https://dev.sum7.eu/sum7/hook2xmpp/-/jobs/artifacts/master/download/?job=build-my-project) (with config example)
|
2019-02-14 12:43:06 +01:00
|
|
|
|
2019-08-08 15:49:25 +02:00
|
|
|
[Download Binary](https://dev.sum7.eu/sum7/hook2xmpp/-/jobs/artifacts/master/raw/bin/hook2xmpp?inline=false&job=build-my-project)
|
2019-02-14 05:05:03 +01:00
|
|
|
|
|
|
|
#### Build
|
|
|
|
|
|
|
|
```bash
|
2019-08-08 15:49:25 +02:00
|
|
|
go get -u dev.sum7.eu/sum7/hook2xmpp
|
2019-02-14 05:05:03 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Configure
|
|
|
|
|
2019-06-20 10:17:46 +02:00
|
|
|
see `config_example.toml`
|
2019-02-14 05:05:03 +01:00
|
|
|
|
|
|
|
## Start / Boot
|
|
|
|
|
|
|
|
_/lib/systemd/system/hook2xmpp.service_ :
|
|
|
|
```
|
|
|
|
[Unit]
|
|
|
|
Description=hook2xmpp
|
|
|
|
After=network.target
|
|
|
|
# After=ejabberd.service
|
|
|
|
# After=prosody.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
# User=notRoot
|
|
|
|
ExecStart=/opt/go/bin/hook2xmpp --config /etc/hook2xmpp.conf
|
|
|
|
Restart=always
|
|
|
|
RestartSec=5sec
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
```
|
|
|
|
|
|
|
|
Start: `systemctl start hook2xmpp`
|
|
|
|
Autostart: `systemctl enable hook2xmpp`
|