[Pkg-utopia-maintainers] Bug#686643: Bug#686643: avahi-daemon: Please remove unneeded link to unit file from `/etc/systemd/`.

Michael Biebl biebl at debian.org
Tue Sep 4 12:35:13 UTC 2012


On 04.09.2012 11:30, Paul Menzel wrote:
> Package: avahi-daemon
> Version: 0.6.28-1
> Severity: normal
> 
> Dear Debian folks,
> 
> 
> looking through `/etc/` I found
> 
>         $ ls -l /etc/systemd/system/dbus-org.freedesktop.Avahi.service 
>         lrwxrwxrwx 1 root root 40 Mär  4  2012 /etc/systemd/system/dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
> 
> which should not be needed according to a discussion in #systemd on
> freenode.net, since only user/admin changes should be stored in `/etc/`.

This is symlink is not unneeded. It is required if you run systemd.
Usually you would create it by running
"systemctl enable avahi-daemon.service" in the package postinst.
"systemctl enable" will create the same set of shortcuts as are shipped
in the package directly.
But unfortunately in Debian we couldn't decide yet, which init system to
support, so I can't rely on systemctl being available during
installation time of avahi-daemon.
If then later on a user installs systemd, avahi-daemon would no longer
start automatically, because those symlinks would be missing and he
would have to remember to run "systemctl enable avahi-daemon.service"
manually.

That's why I decided to ship the symlinks in the package directly.
I basically do the same in the rsyslog and hal package.
This is not a great solution for the problem, but as said, I can't rely
on systemctl being available during installation time of avahi-daemon,
unless I make avahi-daemon depend on systemd.

Hope this clarifies this misunderstanding.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20120904/58469d81/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list