Fixes and new desktop starter synchronization system.

This commit is contained in:
Andreas B. Mundt 2024-01-20 14:38:02 +01:00
parent 350f4c2646
commit 4ce97f5486
6 changed files with 27 additions and 17 deletions

View file

@ -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