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

26 lines
624 B
SYSTEMD
Raw Normal View History

2019-10-17 07:26:26 +02:00
[Unit]
Description=ejabberd prometheus exporter
Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
After=prometheus.service
Requires=ejabberd.service prometheus.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/
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