Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402343 - net-fs/netatalk /etc/init.d/afpd needs avahi-daemon even if called with -nozeroconf
Summary: net-fs/netatalk /etc/init.d/afpd needs avahi-daemon even if called with -noz...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Network Filesystems
Depends on:
Reported: 2012-02-06 04:49 UTC by Dmitri Pogosian
Modified: 2015-04-04 13:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Pogosian 2012-02-06 04:49:01 UTC
init script for afpd daemon from netatalk-2.2.1 (and other versions) "needs" avahi daemon unconditionally (if compiled with USE='avahi'). At the same time
avahi may not be needed if parameter '-nozeroconf' is passed.  Init script should check on the presence of this parameter, similarly as it checks on -dpp for need for atalkd. 

Reproducible: Always

Steps to Reproduce:
1. configure -nozeroconf in /etc/netatalk/afpd.conf
2. "/etc/init.d/afpd start" still starts avahi-daemon as well
3. worse "/etc/init.d/avahi-daemon stop" stops also afpd

easy fix is to replace

need avahi-daemon 

by something like

sed -e 's:#.*::' /etc/netatalk/afpd.conf | fgrep -q -e -nozeroconf \
                || need avahi-daemon
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-04-08 21:14:32 UTC
(I missed this one because I wasn't in CC.)

Okay this is something I should address, but unfortunately it's not as easy as you wrote, as you might have only one server with -nozeroconf — it's much easier with -ddp as that's a "positive" action.

I'll try to get this in on -r4.