如我所说在另一篇文章中,我在 FreeNAS 9.1.1 (FreeBSD 9.x) 上设置了 portsjail,其中包含 CUPS 和 avahi。我正在尝试设置 AirPrint 支持。我已经做到了 Mac 可以看到 avahi 宣传的打印机,但一旦运行几分钟,服务就会消失,直到我重新启动 avahi-daemon 才可用。如果我在调试模式下运行 avahi-daemon,似乎不会发生任何异常:
# avahi-daemon --debug
Found user 'avahi' (UID 200) and group 'avahi' (GID 200).
Successfully dropped root privileges.
avahi-daemon 0.6.29 starting up.
Loading service file /usr/local/etc/avahi/services/AirPrint-Brother.service.
Loading service file /usr/local/etc/avahi/services/sftp-ssh.service.
Loading service file /usr/local/etc/avahi/services/ssh.service.
Joining mDNS multicast group on interface bge0.IPv4 with address 192.168.1.202.
New relevant interface bge0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 192.168.1.202 on bge0.IPv4.
Registering HINFO record with values 'AMD64'/'FREEBSD'.
Server startup complete. Host name is cups.local. Local service cookie is 842584
827.
Service "cups" (/usr/local/etc/avahi/services/ssh.service) successfully establis
hed.
Service "cups" (/usr/local/etc/avahi/services/sftp-ssh.service) successfully est
ablished.
Service "AirPrint Brother @ cups" (/usr/local/etc/avahi/services/AirPrint-Brothe
r.service) successfully established.
在我按下 Ctrl-C 关闭守护进程之前,没有出现任何其他消息 — — 即使在 avahi 的服务从 Bonjour Browser 中消失之后也是如此。然后它似乎正常关闭了:
^CGot SIGINT, quitting.
Leaving mDNS multicast group on interface bge0.IPv4 with address 192.168.1.202.
avahi-daemon 0.6.29 exiting.
关于我需要进行哪些调整以防止 avahi 反复关闭,有什么建议吗?