16 lines
322 B
SYSTEMD
16 lines
322 B
SYSTEMD
[Unit]
|
|
Description=ejabberd prometheus exporter
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=nobody
|
|
Group=nobody
|
|
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
ExecStart=/opt/ejabberd-tools/prometheus.py
|
|
WorkingDirectory=/opt/ejabberd-tools/
|
|
Restart=always
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|