2019-10-17 07:26:26 +02:00
|
|
|
[Unit]
|
|
|
|
Description=ejabberd prometheus exporter
|
2020-06-10 12:00:12 +02:00
|
|
|
Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
|
2020-06-10 12:17:09 +02:00
|
|
|
Requires=ejabberd.service
|
2019-10-17 07:26:26 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=nobody
|
2019-10-17 09:12:35 +02:00
|
|
|
Group=nobody
|
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/prometheus.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-17 07:26:26 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|