diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-19 23:06:22 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-19 23:06:22 -0600 |
| commit | ed8228db96961908c7e1fe7f86d05b8d5760efdb (patch) | |
| tree | 6db6d50afe10de2bbc18e07f2f25abfb37866753 | |
| parent | 5630168ae76fa1de66026c616ba92fb92486cf52 (diff) | |
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.
| -rwxr-xr-x | archsetup | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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" |
