From f14c9af6ee0c0399c2ec83e58402f01e9b47a06d Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 10 Jun 2020 07:28:10 +0200 Subject: systemd: add support for venv and cleanup --- contrib/init/linux-systemd/ejabberd-cleanup.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 contrib/init/linux-systemd/ejabberd-cleanup.service (limited to 'contrib/init/linux-systemd/ejabberd-cleanup.service') diff --git a/contrib/init/linux-systemd/ejabberd-cleanup.service b/contrib/init/linux-systemd/ejabberd-cleanup.service new file mode 100644 index 0000000..e68de47 --- /dev/null +++ b/contrib/init/linux-systemd/ejabberd-cleanup.service @@ -0,0 +1,14 @@ +[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 -- cgit v1.2.3-54-g00ecf