mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 23:15:37 +08:00
17 lines
No EOL
498 B
Desktop File
17 lines
No EOL
498 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=/opt/upgrade_server/venv/bin/python /var/npbackup_upgrade_server/upgrade_server.py --config-file=/etc/npbackup_upgrade_server.conf
|
|
WorkingDirectory=/var/npbackup_upgrade_server
|
|
Environment="PYTHONPATH=/var/npbackup_upgrade_server"
|
|
Restart=always
|
|
RestartSec=60
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |