Avoid starting running subhosts.
authorRalph Ronnquist <rrq@rrq.au>
Fri, 11 Jul 2025 08:19:55 +0000 (18:19 +1000)
committerRalph Ronnquist <rrq@rrq.au>
Fri, 11 Jul 2025 08:19:55 +0000 (18:19 +1000)
subhosts.sh

index daff12efbde27115f72efba84a0330b29e2306a7..741b988f51b1d0abf06c57a26bab80436f87df74 100755 (executable)
@@ -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