[Unit] Description=c3lf sys3 background service After=network.target [Service] User=www-data Group=www-data WorkingDirectory=/var/www/c3lf-sys3 ExecStart=/var/www/c3lf-sys3/venv/bin/python3 /var/www/c3lf-sys3/repo/core/manage.py update_metrics Environment=DJANGO_SETTINGS_MODULE=core.settings [Install] WantedBy=multi-user.target