Avahi 在 FreeBSD/FreeNAS 上運行幾分鐘後停止工作

Avahi 在 FreeBSD/FreeNAS 上運行幾分鐘後停止工作

如我所說在另一篇文章中,我已經使用 CUPS 和 avahi 在 FreeNAS 9.1.1 (FreeBSD 9.x) 上設定了 portsjail。我正在嘗試設定 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.                                            

即使在 avahi 的服務從 Bonjour 瀏覽器中消失之後,也沒有出現更多訊息,直到我按 Ctrl-C 關閉守護程序。然後它顯然正常關閉:

^CGot SIGINT, quitting.                                                         
Leaving mDNS multicast group on interface bge0.IPv4 with address 192.168.1.202. 
avahi-daemon 0.6.29 exiting.  

關於我需要進行哪些調整以防止 avahi 反覆關閉,有什麼建議嗎?

相關內容