diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index 4ae12989e..347868089 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -53,7 +53,8 @@ then fi systemctl reset-failed ncp-update-nc 2>/dev/null ||: -systemd-run -u 'ncp-update-nc' bash -c "set -o pipefail; DBG='${DBG:-}' /usr/local/bin/ncp-update-nc.d/update-nc.sh '${VER}' |& tee /var/log/ncp-update-nc.log" +systemd-run -u 'ncp-update-nc' --service-type=oneshot --no-block -p TimeoutStartSec="24h" -p TimeoutStopSec="1h" \ + bash -c "set -o pipefail; DBG='${DBG:-}' /usr/local/bin/ncp-update-nc.d/update-nc.sh '${VER}' |& tee /var/log/ncp-update-nc.log" sleep 1 if ! [[ "$(systemctl is-active ncp-update-nc ||:)" =~ ^(active|inactive|activating|deactivating)$ ]]