2019-10-17 07:26:26 +02:00
|
|
|
[Unit]
|
|
|
|
Description=ejabberd prometheus exporter
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=nobody
|
2019-10-17 09:12:35 +02:00
|
|
|
Group=nobody
|
2020-06-10 07:28:10 +02:00
|
|
|
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
|
|
ExecStart=/opt/ejabberd-tools/prometheus.py
|
|
|
|
WorkingDirectory=/opt/ejabberd-tools/
|
2019-10-17 07:26:26 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|