From 6cae1ed744c15445fdcc2db26d266770f0c965e0 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 31 Aug 2026 09:41:09 +0200 Subject: [PATCH] bookorbit: raise service start timeout, migration can exceed systemd default (#16860) --- ct/bookorbit.sh | 8 +++++++- install/bookorbit-install.sh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/bookorbit.sh b/ct/bookorbit.sh index eace41446..14d27ecdc 100644 --- a/ct/bookorbit.sh +++ b/ct/bookorbit.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") # Copyright (c) 2021-2026 community-scripts ORG # Author: MickLesk (CanbiZ) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -56,6 +58,10 @@ function update_script() { restore_backup APP_VER=$(cat ~/.bookorbit) sed -i "s/^APP_VERSION=.*/APP_VERSION=v$APP_VER/" /opt/bookorbit/.env + if ! grep -q '^TimeoutStartSec=' /etc/systemd/system/bookorbit.service; then + sed -i '/^\[Service\]/a TimeoutStartSec=infinity' /etc/systemd/system/bookorbit.service + systemctl daemon-reload + fi msg_ok "Rebuilt Application" msg_info "Updating Kobo Python Runtime" diff --git a/install/bookorbit-install.sh b/install/bookorbit-install.sh index 275f141d2..14e574fe1 100644 --- a/install/bookorbit-install.sh +++ b/install/bookorbit-install.sh @@ -81,6 +81,7 @@ Requires=postgresql.service [Service] Type=simple User=root +TimeoutStartSec=infinity WorkingDirectory=/opt/bookorbit/server EnvironmentFile=/opt/bookorbit/.env ExecStartPre=/usr/bin/node /opt/bookorbit/server/dist/scripts/migrate.js