You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
485 B

[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=http_proxy=http://proxy:port
#Environment=https_proxy=http://proxy:port
#Environment=no_proxy=127.0.0.1,localhost
ExecStart=/opt/pySonnerie/backend/.venv/bin/python /opt/pySonnerie/backend/run.py
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target