From c9f43d82795affd432853535baba5ed71996bb3f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Jul 2026 02:11:13 +0000 Subject: [PATCH] Separate UCE builds from service startup --- scripts/systemd/manage-uce-service.sh | 8 +++++++- scripts/systemd/uce.service | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/systemd/manage-uce-service.sh b/scripts/systemd/manage-uce-service.sh index c7bcf3c..a483eb0 100755 --- a/scripts/systemd/manage-uce-service.sh +++ b/scripts/systemd/manage-uce-service.sh @@ -52,7 +52,13 @@ case "$action" in install_unit systemctl enable "$UNIT_NAME" ;; - start|stop|restart|status) + restart) + if [[ "$REPO_ROOT" != "/usr/lib/uce" && "$REPO_ROOT" != "/opt/uce" ]]; then + "$REPO_ROOT/scripts/build_linux.sh" + fi + systemctl restart "$UNIT_NAME" + ;; + start|stop|status) systemctl "$action" "$UNIT_NAME" ;; logs) diff --git a/scripts/systemd/uce.service b/scripts/systemd/uce.service index 6ceae84..21ed56a 100644 --- a/scripts/systemd/uce.service +++ b/scripts/systemd/uce.service @@ -12,7 +12,6 @@ RuntimeDirectoryPreserve=yes StateDirectory=uce CacheDirectory=uce ExecStartPre=/usr/bin/mkdir -p /var/cache/uce/work /var/lib/uce/uploads /var/lib/uce/sessions -ExecStartPre=/usr/bin/bash /Code/uce.openfu.com/uce/scripts/build_linux.sh ExecStart=/Code/uce.openfu.com/uce/bin/uce_fastcgi.linux.bin ExecStartPost=/usr/bin/bash /Code/uce.openfu.com/uce/scripts/systemd/wait-ready.sh Restart=always