moodle-import-worker/systemd/moodle-import-worker.service

13 lines
324 B
SYSTEMD
Raw Normal View History

2022-08-24 10:54:37 +00:00
[Unit]
Description=Moodle Import Worker
[Service]
Type=oneshot
# Needs to run as the user Moodle runs as
User=www-data
Group=www-data
WorkingDirectory=/opt/moodle-import-worker/
ExecStart=/usr/bin/env python3 /opt/moodle-import-worker/worker.py
2022-09-10 04:54:33 +00:00
ExecStartPost=/bin/sh -c "/bin/rm -r /var/www/html/moodledata/temp/backup/*"