diff options
Diffstat (limited to 'archsetup')
| -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" |
