/etc/init.d/avahi-daemon should print a message if disabled and run interactively

Bug #65603 reported by Trent Lloyd on 2006-10-12
24
Affects Status Importance Assigned to Milestone
avahi (Debian)
Fix Released
Unknown
avahi (Ubuntu)
Undecided
Avahi

Bug Description

With avahi-daemon being disabled by default, many users get confused as to why avahi is not working when installed

There are 2 main cases

1) They install avahi and it "just doesnt work"
2) They install avahi, it's not working, they try to manually run "/etc/init.d/avahi-daemon start" and nothing happens

I think we can solve the latter by makign the init script print a message when run interactively, the pcmciautils script does this and uses the following function to determine if its run by init or not:

run_by_init()
{
    ([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
}

Trent Lloyd (lathiat) on 2006-10-12
Changed in avahi:
assignee: nobody → avahi
Laurent Bigonville (bigon) wrote :

My patch (see debian BTS) has been applied by the debian packager

Should may be included in ubuntu package

Changed in avahi:
status: Unknown → Fix Released
Laurent Bigonville (bigon) wrote :

Fixed in 0.6.16-2

Changed in avahi:
status: Unconfirmed → Fix Released
redsek (biju-george-bugs-gmail) wrote :

Hello,

There was a scripting error in /etc/init.d/avahi-daemon (at least on feisty). I have attached the fixed /etc/init.d/avahi-daemon script file. Now /etc/init.d/avahi-daemon start will start the daemon.

Would someone please include this as a patch after verification.

Thanks

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.