From: Ralph Ronnquist Date: Fri, 11 Jul 2025 08:19:55 +0000 (+1000) Subject: Avoid starting running subhosts. X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=cecfed8bc930bc0d1f732ea87ff7e0f713551ede;p=rrq%2Foverlay-boot.git Avoid starting running subhosts. --- 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