mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-01 02:53:16 +02:00
bookorbit: raise service start timeout, migration can exceed systemd default (#16860)
This commit is contained in:
committed by
GitHub
parent
cecd3222fc
commit
6cae1ed744
+7
-1
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user