[Unit] Description=pySonnerie Backend API After=network.target [Service] Type=simple User=www-data WorkingDirectory=/opt/pySonnerie/backend Environment=PATH=/opt/pySonnerie/backend/.venv/bin:/usr/bin:/bin Environment=NO_PROXY=127.0.0.1,localhost,::1 Environment=no_proxy=127.0.0.1,localhost,::1 #Environment=http_proxy=http://proxy:port #Environment=https_proxy=http://proxy:port ExecStart=/opt/pySonnerie/backend/.venv/bin/python /opt/pySonnerie/backend/run.py Restart=on-failure RestartSec=3 [Install] WantedBy=multi-user.target