mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 06:25:17 +08:00
Add service restart argument for systemd
This commit is contained in:
parent
de16c9d0a6
commit
f11dd381a8
1 changed files with 5 additions and 3 deletions
|
@ -7,9 +7,11 @@ After=network.target
|
||||||
#Group=npbackup
|
#Group=npbackup
|
||||||
|
|
||||||
# Set this to whatever directory you installed the upgrade_server to
|
# 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
|
ExecStart=/usr/bin/python3 /var/www/upgrade_server/upgrade_server.py --config-file=/etc/npbackup/upgrade_server.conf
|
||||||
WorkingDirectory=/var/www/upgrades.stash.netperfect.eu/upgrade_server
|
WorkingDirectory=/var/www/upgrade_server
|
||||||
Environment="PYTHONPATH=/var/www/upgrades.stash.netperfect.eu/upgrade_server"
|
Environment="PYTHONPATH=/var/www/upgrade_server"
|
||||||
|
Restart=always
|
||||||
|
RestartSec=60
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue