aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/init/linux-systemd/ejabberd-exporter.service
blob: 3eb83810e7402a6f00e0f8ab157ede13960de25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[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