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