mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(avahi): watchdog was acting up
This commit is contained in:
parent
1ed36b4f66
commit
e91fc56a31
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ in {
|
|||
set -eu
|
||||
export PATH="$PATH:${makeBinPath [config.systemd.package pkgs.coreutils pkgs.gnugrep]}"
|
||||
while read -r line; do
|
||||
if [[ $line = *"Host name conflict"* ]]; then
|
||||
if [[ $line = *"Host name conflict, retrying with "* ]]; then
|
||||
if systemctl is-active ${daemon} > /dev/null; then
|
||||
echo restarting avahi-daemon due to host name conflict... >&2
|
||||
systemctl stop ${daemon}
|
||||
|
|
@ -36,7 +36,7 @@ in {
|
|||
systemctl start ${daemon}
|
||||
fi
|
||||
fi
|
||||
done < <(journalctl -o cat -feu ${daemon} | grep -F 'Host name conflict, retrying with ')
|
||||
done < <(journalctl -n 0 -o cat -feu ${daemon})
|
||||
'';
|
||||
in
|
||||
mkIf (cfg.enable && cfg.publish.enable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue