[Bug 659357] New: [systemd] avahi-daemon does not start
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c0 Summary: [systemd] avahi-daemon does not start Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ismail@namtrac.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Chrome/10.0.611.0 Safari/534.15 Installed systemd and systemd-sysvinit. Upon startup everything seems to be fine but avahi-daemon is not started. Reproducible: Always Steps to Reproduce: 1. Installed systemd and systemd-sysvinit 2. Restart 3. Notice that you can't browser zeroconf networks because avahi-daemon is not started. Actual Results: avahi-daemon is not started. Expected Results: avahi-daemon runs on startup. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c Ismail Donmez <ismail@namtrac.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |kasievers@novell.com |ovo.novell.com | Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c1 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |vuntz@novell.com InfoProvider| |vuntz@novell.com --- Comment #1 from Kay Sievers <kasievers@novell.com> 2010-12-16 12:56:08 UTC --- Please run: /bin/systemctl enable avahi-daemon.service it will enable systemd which is not done automatically from the spec file. Vincent, for now, care to add: %post if [ "$1" -eq 1 ]; then /bin/systemctl enable avahi-daemon.service >/dev/null 2>&1 || : fi to the spec file? That way, avahi will get enabled on *first install*. How to handle enable it on package *updates* on SUSE is still not decided. Fedora uses chkconfig and %triggerun -- we need to come up with something here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[systemd] avahi-daemon does |avahi: for systemd we need |not start |to call 'systemctl enable | |avahi-daemon.service' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c2 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|vuntz@novell.com |kasievers@novell.com --- Comment #2 from Vincent Untz <vuntz@novell.com> 2010-12-16 13:40:01 UTC --- Kay: that's typically the kind of scriptlets where I'd love to get a macro so that, if later on, we choose to handle it differently in %post, we don't have to fix all packages. Does it make sense to define a macro for this and ship it somewhere? Also, do we want to handle the case where systemd is installed after avahi? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c3 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|kasievers@novell.com | --- Comment #3 from Kay Sievers <kasievers@novell.com> 2010-12-16 13:47:06 UTC --- Yeah, that's why I kept the bug. We need to sort that out. A macro sounds nice. But ... I have no real idea how to do the "enable systemd service "only-when-it-is-enabled-in-sysv" -- and do all that only once when the systemd service files are introduced, and never on later updates. We probably don't really have these package version checks available for the triggers like Fedora, but I don't know ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c4 --- Comment #4 from Ismail Donmez <ismail@namtrac.org> 2010-12-16 18:52:22 UTC --- alsa-utils.spec has code like this: %if %use_systemd ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service %endif Does this help? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c5 --- Comment #5 from Kay Sievers <kasievers@novell.com> 2010-12-16 19:48:25 UTC --- (In reply to comment #4)
alsa-utils.spec has code like this:
%if %use_systemd ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service %endif
This just short-cuts the old init script, which should never be executed on systemd boots. It does not enable anything. Unlike avahi, the installed alsa services do not have that install/udate problem, they are always pulled-in from /lib/systemd/. They are not configurable, and can not be turned off -- only by linking them to /dev/null in /etc/systemd/. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c6 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem Platform|x86-64 |All AssignedTo|kasievers@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 11.4 |openSUSE 11.5 Summary|avahi: for systemd we need |systemd: we need to call |to call 'systemctl enable |'systemctl enable |avahi-daemon.service' |*.service' at rpm install | |time of packages OS/Version|openSUSE 11.3 |All Severity|Major |Normal --- Comment #6 from Kay Sievers <kasievers@novell.com> 2011-03-10 16:22:42 UTC --- It's currently: cron, avahi, acpid which install systemd service files, and can be enabled/disabled. At package install time, we can do: %post if [ "$1" -eq 1 ]; then /bin/systemctl enable foo.service >/dev/null 2>&1 || : fi There is still no solution how to do this on package upgrade when the systemd service file is introduced, but not on any later upgrade. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kasievers@novell.com AssignedTo|bnc-team-screening@forge.pr |kasievers@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c7 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |seife@novell.slipkontur.de --- Comment #7 from Kay Sievers <kasievers@novell.com> 2011-03-10 16:25:17 UTC --- *** Bug 660493 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=660493 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c8 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@novell.com --- Comment #8 from Kay Sievers <kasievers@novell.com> 2011-03-20 14:15:10 UTC --- *** Bug 681074 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=681074 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kasievers@novell.com |fcrozat@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c9 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@novell.com --- Comment #9 from Frederic Crozat <fcrozat@novell.com> 2011-08-22 16:08:00 UTC --- *** Bug 704800 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=704800 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c10 --- Comment #10 from Frederic Crozat <fcrozat@novell.com> 2011-09-08 12:55:20 UTC --- I'm implemented a solution to only enable systemd service first time a .service is introduced in a package (ie migrating from sysvinit to unit file), with three macros : %service_migrate_to_systemd_pre / %service_migrate_to_systemd_post / %service_migrate_to_systemd_postun I got a request to try to merge those macros into %service_add / %service_del_preun / %service_del_postun -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=659357 https://bugzilla.novell.com/show_bug.cgi?id=659357#c11 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2011-09-29 09:57:20 UTC --- fixed, we now ship %service_add_pre/post %service_del_preun/postun which calls systemctl preset to enable services listed in systemd preset directory (and packaged in systemd-presets-branding-openSUSE). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com