2020-06-10 07:28:10 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Clean up ejabberd
|
2020-06-10 12:00:12 +02:00
|
|
|
Documentation=https://dev.sum7.eu/sum7/ejabberd-tools/-/blob/master/README.md
|
|
|
|
Requires=ejabberd.service
|
2020-06-10 07:28:10 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
User=nobody
|
|
|
|
Group=nobody
|
|
|
|
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
|
|
ExecStart=/opt/ejabberd-tools/cleanup.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
|
2020-06-10 07:28:10 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|