The Samba-Bugzilla – Bug 13324
timemachine share not being advertised by avahi-daemon
Last modified: 2018-03-12 14:12:48 UTC
When adding a new share to smb.conf and "pkill -HUP smbd/nmbd" , i would expect that this share would be also added to avahi-daemon running config to be advertised there, but apparently i need to restart avahi-daemon to make it appear.
i'm not sure if this is a bug or if this is by design or a "missing feature", though.
this happens with latest samba 4.8.0rc4
apparently, after pkill -HUP smbd/nmbd, restarting avahi-daemon (added sleep 5 after pkill) seems to be unreliable, i had at least one occurence where smbd did not re-register the shares after that and so no user could do timemachine backups.