[Unit] Description=Hosting Platform Backend API After=network.target [Service] Type=simple User=www-data Group=www-data WorkingDirectory=/var/www/hosting-backend Environment="PATH=/var/www/hosting-backend/venv/bin" ExecStart=/var/www/hosting-backend/venv/bin/python app/main.py Restart=always RestartSec=10 # Logging StandardOutput=journal StandardError=journal SyslogIdentifier=hosting-backend [Install] WantedBy=multi-user.target