Fixes and new desktop starter synchronization system.
This commit is contained in:
parent
350f4c2646
commit
4ce97f5486
6 changed files with 27 additions and 17 deletions
|
@ -24,7 +24,10 @@ if [[ "${COMMAND}" = "start" ]]; then
|
|||
--collect \
|
||||
--property=Type=exec \
|
||||
--property=SuccessExitStatus=1 \
|
||||
aria2c --bt-hash-check-seed=true --check-integrity=true --seed-ratio=0.0 --dht-entry-point="${SEEDBOX_HOST}:${SEEDBOX_PORT}" "${VM_SYSDIR}/${VM_NAME}.qcow2.torrent"
|
||||
elif [[ "${COMMAND}" = "stop" ]]; then
|
||||
systemctl stop "aria2-${VM_NAME}.service" || echo "Aria2-Service not running"
|
||||
aria2c --bt-hash-check-seed=true --check-integrity=true --seed-ratio=0.0 \
|
||||
--dht-entry-point="${SEEDBOX_HOST}:${SEEDBOX_PORT}" \
|
||||
--dht-file-path=$DHTDAT \
|
||||
"${VM_SYSDIR}/${VM_NAME}.qcow2.torrent"
|
||||
elif [[ "${COMMAND}" = "stop" ]] && systemctl is-active "aria2-${VM_NAME}.service"; then
|
||||
systemctl stop "aria2-${VM_NAME}.service"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue