ejabberd-tools/contrib/init/linux-systemd/ejabberd-influxdb.service

17 lines
368 B
SYSTEMD
Raw Normal View History

[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