summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-19 23:06:22 -0600
committerCraig Jennings <c@cjennings.net>2026-01-19 23:06:22 -0600
commited8228db96961908c7e1fe7f86d05b8d5760efdb (patch)
tree6db6d50afe10de2bbc18e07f2f25abfb37866753 /archsetup
parent5630168ae76fa1de66026c616ba92fb92486cf52 (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.
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup10
1 files 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"