[alsa-devel] [PATCHES] Integrate minimal systemd support in alsa-utils

Takashi Iwai tiwai at suse.de
Fri Nov 26 12:57:31 CET 2010


At Fri, 26 Nov 2010 12:50:00 +0100,
Kay Sievers wrote:
> 
> On Fri, Nov 26, 2010 at 09:36, Takashi Iwai <tiwai at suse.de> wrote:
> > At Tue, 23 Nov 2010 18:05:00 +0100,
> > Kay Sievers wrote:
> >>
> >> On Tue, Nov 23, 2010 at 07:16, Takashi Iwai <tiwai at suse.de> wrote:
> >>
> >> > The second patch looks good to me.  It doesn't break, at least.
> >> > I'm going to apply it unless anyone else has specific objection.
> >>
> >> Now that both is merged, mind putting that in openSUSE Factory?
> >>
> >> We need to enable systemd services with:
> >>   --with-systemdsystemunitdir=/lib/systemd/system
> >>
> >> list the files/dirs in:
> >>   /lib/systemd/system/*.service
> >>   /lib/udev/rules.d/*.rules
> >>
> >> Drop the current custom udev rule:
> >>   /etc/udev/rules.d/40-alsa.rules
> >> and use only the systemd one in /lib/udev/. It should work also for
> >> non-systemd setups.
> >>
> >> All the naming rules for the snd/ subdir can be removed on all recent
> >> systems, only the GROUP="audio" is needed.
> >>
> >> No rules files should be installed in /etc, all files from packages
> >> belong into /lib.
> >
> > Now I fixed all these on OBS multimedia:libs project.
> > The only question is the below one:
> >
> >> The old SYSV init script:
> >>   /etc/init.d/alsasound
> >> should be linked to:
> >>   /lib/systemd/system/alsasound.service -> alsa-restore.service
> >> so that the init script will not be executed on systemd bootups.
> >
> > Do you mean to create a symlink
> >
> >  /lib/systemd/system/alsasound.service -> alsa-restore.service
> >
> 
> Yes, so:
>   systemctl start alsasound.service
> works, and the old init script is not started anymore by the SVSV compat code.
> 
> > corresponding to /etc/init.d/alsasound, while keeping
> > /etc/init.d/alsasound as is?
> 
> Yes, for non-systemd boots.
> 
> > If so, this will also belong to alsa-utils.rpm, I suppose.  Otherwise
> > we'll get a circular dependency.
> 
> Sure, it does not matter as long as the link is there. :)

OK, done now.  I'm going to submit to FACTORY later once after checking
the builds in multimedia:libs repo.


Thanks!

Takashi


More information about the Alsa-devel mailing list