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

15 lines
331 B
SYSTEMD

[Unit]
Description=Clean up ejabberd
[Service]
Type=oneshot
User=nobody
Group=nobody
Environment="VIRTUAL_ENV=/opt/ejabberd-tools/venv"
Environment="PATH=/opt/ejabberd-tools/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/ejabberd-tools/cleanup.py
WorkingDirectory=/opt/ejabberd-tools/
[Install]
WantedBy=multi-user.target