blob: 1aa06cde361c660dad84e5d5e26e25834662be46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
[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
[Service]
Type=simple
User=nobody
Group=nobody
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
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
|