From e946f41890752745ec4a1885ca2c2a58a6573cb3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Apr 2023 05:56:05 -0400 Subject: [PATCH] Update build.func Check if the Monitor-All service is currently active. If it is, stop the service until the creation process is complete. Once the creation process is finished, start the Monitor-All service again. --- misc/build.func | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/build.func b/misc/build.func index 4859554b..3a80c03b 100644 --- a/misc/build.func +++ b/misc/build.func @@ -375,6 +375,9 @@ install_script() { ssh_check arch_check pve_check + if systemctl is-active -q ping-instances.service; then + systemctl stop ping-instances.service + fi NEXTID=$(pvesh get /cluster/nextid) timezone=$(cat /etc/timezone) header_info @@ -508,4 +511,7 @@ description() { pct set "$CTID" -description "# ${APP} LXC ### https://tteck.github.io/Proxmox/ " + if [[ -f /etc/systemd/system/ping-instances.service ]]; then + systemctl start ping-instances.service + fi }