From ed8228db96961908c7e1fe7f86d05b8d5760efdb Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 19 Jan 2026 23:06:22 -0600 Subject: feat(archsetup): skip avahi if already running Detect if avahi-daemon.service is active and skip install/config. Supports archzfs installs that pre-configure avahi for mDNS on first boot. --- archsetup | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/archsetup b/archsetup index 5f6e9ba..d87edcc 100755 --- a/archsetup +++ b/archsetup @@ -849,11 +849,15 @@ EOF display "subtitle" "Network Service Discovery" pacman_install nss-mdns # GNU Name Service Switch host name resolution - pacman_install avahi # service discovery on a local network using mdns - action="enabling avahi for mDNS discovery" && display "task" "$action" # Note: systemd-resolved handles DNS (with DoT), avahi handles mDNS (.local) - systemctl enable avahi-daemon.service >> "$logfile" 2>&1 || error "error" "$action" "$?" + if systemctl is-active --quiet avahi-daemon.service; then + display "task" "skipping avahi (already running)" + else + pacman_install avahi # service discovery on a local network using mdns + action="enabling avahi for mDNS discovery" && display "task" "$action" + systemctl enable avahi-daemon.service >> "$logfile" 2>&1 || error "error" "$action" "$?" + fi pacman_install geoclue # geolocation service for location-aware apps action="enabling geoclue geolocation service" && display "task" "$action" -- cgit v1.2.3