[Unit] Description=NPBackup upgrade server gunicorn service After=network.target [Service] #User=npbackup #Group=npbackup # Set this to whatever directory you installed the upgrade_server to ExecStart=/usr/bin/python3 /var/www/upgrade_server/upgrade_server.py --config-file=/etc/npbackup/upgrade_server.conf WorkingDirectory=/var/www/upgrade_server Environment="PYTHONPATH=/var/www/upgrade_server" Restart=always RestartSec=60 [Install] WantedBy=multi-user.target