npbackup/examples/systemd/upgrade_server.service
2023-02-06 22:27:08 +01:00

17 lines
No EOL
466 B
Desktop File

[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