aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/init/linux-systemd/ejabberd-influxdb.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/init/linux-systemd/ejabberd-influxdb.service')
-rw-r--r--contrib/init/linux-systemd/ejabberd-influxdb.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/init/linux-systemd/ejabberd-influxdb.service b/contrib/init/linux-systemd/ejabberd-influxdb.service
index 364b574..6b711b6 100644
--- a/contrib/init/linux-systemd/ejabberd-influxdb.service
+++ b/contrib/init/linux-systemd/ejabberd-influxdb.service
@@ -1,5 +1,8 @@
[Unit]
Description=ejabberd influxdb exporter
+Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
+After=influxdb.service
+Requires=ejabberd.service influxdb.service
[Service]
Type=simple
@@ -8,6 +11,13 @@ Group=nogroup
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/ejabberd-tools/influx.py
WorkingDirectory=/opt/ejabberd-tools/
+PrivateDevices=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectKernelTunables=true
+ProtectKernelModules=yes
+ProtectSystem=full
+NoNewPrivileges=yes
Restart=always
RestartSec=5s