mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-13 16:35:43 +08:00
Add systemd unit file and move upgrade_server files to subdirectory
This commit is contained in:
parent
96d4268cbe
commit
5c269afa71
2 changed files with 15 additions and 0 deletions
15
examples/systemd/upgrade_server.service
Normal file
15
examples/systemd/upgrade_server.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[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=/var/www/upgrades.stash.netperfect.eu/venv/bin/python3 /var/www/upgrades.stash.netperfect.eu/upgrade_server/upgrade_server.py --config-file=/etc/npbackup/upgrade_server.conf
|
||||
WorkingDirectory=/var/www/upgrades.stash.netperfect.eu/upgrade_server
|
||||
Environment="PYTHONPATH=/var/www/upgrades.stash.netperfect.eu/upgrade_server"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue