Also, the Avahi init files run a second instance of afpd and a separate Avahi service-group, which broadcasts the Time Machine service. The reason I did this is because QNap uses a separate UID/user for the Time Machine share. Due to the nature of AFP/mDNS, you can only mount one service under one user at a time. So if you were mounting a non-Time Machine share, your Time Machine backups would fail as it could not mount the same service with two different users simultaneously. To get around that, I run a second instance of afpd on a different port, just for the Time Machine share. This is also why it shows up in finder separately.
regards
Rob
Edit - the extra Time Machine process is afpd, not avahi, it's been a while
News