[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022903: systemd unit fails by default



Package: soundmodem
Version: 0.20-6+b1
Severity: normal

On a newly installed system, the systemd unit fails with this:

oct 06 12:15:58 angela systemd[1]: Starting Soundmodem systemD service file to fix device permissions...
oct 06 12:15:58 angela soundmodem[2069]: Configuartion not found
oct 06 12:15:58 angela soundmodem[2063]: SoundModem init failed
oct 06 12:15:58 angela systemd[1]: soundmodem.service: Control process exited, code=exited, status=1/FAILURE
oct 06 12:15:58 angela systemd[1]: soundmodem.service: Failed with result 'exit-code'.
oct 06 12:15:58 angela systemd[1]: Failed to start Soundmodem systemD service file to fix device permissions.

... this marks the whole system as "degraded" which is really kind of
inaccurate, because the system is actually perfectly functional;
soundmodem is just not configured yet.

I can think of two ways of fixing this:

 1. add a condition in the systemd unit so that it doesn't try to
 start the service when it's unconfigured

 2. add a sample config file so that the service *does* start by
 default

I would favor the former. I think it needs a ConditionPathExists=
entry in the [Unit] section of the service file. I'm not sure which
actual config file we're talking about anymore though, but I figured I
would just mention it. :)


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages soundmodem depends on:
ii  libasound2           1.2.7.2-1
ii  libatk1.0-0          2.46.0-3
ii  libaudiofile1        0.3.6-5+b1
ii  libc6                2.35-3
ii  libgdk-pixbuf-2.0-0  2.42.9+dfsg-1
ii  libglib2.0-0         2.74.0-3
ii  libgtk2.0-0          2.24.33-2
ii  libhamlib4           4.3.1-1+b3
ii  libpango-1.0-0       1.50.10+ds-1
ii  libxml2              2.9.14+dfsg-1+b1

soundmodem recommends no packages.

soundmodem suggests no packages.

-- no debconf information


Reply to: