17 lines
373 B
SYSTEMD
17 lines
373 B
SYSTEMD
[Unit]
|
|
Description=ejabberd prometheus exporter
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=nobody
|
|
Group=nobody
|
|
Environment="VIRTUAL_ENV=/opt/ejabberd-tools/venv"
|
|
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
|