2019-10-24 20:31:49 +02:00
|
|
|
[Unit]
|
2020-06-10 00:56:43 +02:00
|
|
|
Description=ejabberd influxdb exporter
|
2020-06-10 12:00:12 +02:00
|
|
|
Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
|
|
|
|
After=influxdb.service
|
|
|
|
Requires=ejabberd.service influxdb.service
|
2019-10-24 20:31:49 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=nobody
|
2019-12-07 14:48:25 +01:00
|
|
|
Group=nogroup
|
2020-06-10 07:28:10 +02:00
|
|
|
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
|
|
ExecStart=/opt/ejabberd-tools/influx.py
|
|
|
|
WorkingDirectory=/opt/ejabberd-tools/
|
2020-06-10 12:00:12 +02:00
|
|
|
PrivateDevices=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectSystem=full
|
|
|
|
NoNewPrivileges=yes
|
2019-10-24 20:31:49 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|