From cecfed8bc930bc0d1f732ea87ff7e0f713551ede Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Fri, 11 Jul 2025 18:19:55 +1000 Subject: [PATCH] Avoid starting running subhosts. --- subhosts.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/subhosts.sh b/subhosts.sh index daff12e..741b988 100755 --- a/subhosts.sh +++ b/subhosts.sh @@ -23,6 +23,7 @@ do_status_override() { do_start_override() { if [ -r /etc/subhosts.conf ] ; then for SUB in $(grep -v '#' /etc/subhosts.conf) ; do + pgrep -f "overlay-boot $SUB\$" > /dev/null && continue echo "overlay-boot $SUB" >&2 overlay-boot $SUB | logger -p boot.info -s done -- 2.47.2