You are not logged in.

#1 2012-11-02 15:17:38

nuc
Member
Registered: 2012-04-26
Posts: 115

alsa-(re)store.service still used by systemd although disabled

Hi,
I disabled the alsa-restore.service / alsa-store.service because I use OSSv4. However, systemd is still addressing alsa-restore.service / alsa-store.service:
at boot:

# systemctl status alsa-restore.service 
alsa-restore.service - Restore Sound Card State
	  Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
	  Active: inactive (dead) since Fri, 2012-11-02 16:34:31 CET; 1min 2s ago
	 Process: 296 ExecStart=/usr/sbin/alsactl restore (code=exited, status=19)
	  CGroup: name=systemd:/system/alsa-restore.service

Nov 02 16:34:31 Archer systemd[1]: Starting Restore Sound Card State...
Nov 02 16:34:32 Archer alsactl[296]: /usr/sbin/alsactl: load_state:1696: No soundcards found...

at shutdown:

# systemctl status alsa-store.service 
alsa-store.service - Store Sound Card State
	  Loaded: loaded (/usr/lib/systemd/system/alsa-store.service; static)
	  Active: inactive (dead)
	  CGroup: name=systemd:/system/alsa-store.service

Nov 02 16:07:23 Archer systemd[1]: Starting Store Sound Card State...
Nov 02 16:07:23 Archer alsactl[1113]: /usr/sbin/alsactl: save_state:1580: No soundcards found...
Nov 02 16:07:23 Archer systemd[1]: alsa-store.service: main process exited, code=exited, status=19/n/a
Nov 02 16:07:23 Archer systemd[1]: Failed to start Store Sound Card State.
Nov 02 16:07:23 Archer systemd[1]: Unit alsa-store.service entered failed state

Last edited by nuc (2012-11-02 15:39:36)

Offline

#2 2012-11-02 16:00:59

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: alsa-(re)store.service still used by systemd although disabled

"systemctl mask" them or simply uninstall alsa-utils.

Offline

#3 2012-11-02 16:35:14

nuc
Member
Registered: 2012-04-26
Posts: 115

Re: alsa-(re)store.service still used by systemd although disabled

65kid wrote:

"systemctl mask" them or simply uninstall alsa-utils.

Thanks, masking works (although this is a rather bruteforce method). After typing "systemctl status alsa-(re)store.service" at the bottom of the output it says:

Warning: Unit file changed on disk, 'systemctl --system daemon-reload' recommended.

I suppose that's to be expected after masking?


I'm still wondering why sytemd won't obey the standard "disable" command. Bug? Feature^^???

Offline

#4 2012-11-02 16:42:00

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: alsa-(re)store.service still used by systemd although disabled

alsa-restore/store is pulled in by basic.target/shutdown.target by default, probably because there is simply no reason to disable it - if you don't use ALSA, don't install alsa-utils.

$ systemctl show -p WantedBy alsa-restore alsa-store
WantedBy=basic.target

WantedBy=shutdown.target

Offline

#5 2013-01-15 09:55:40

nuc
Member
Registered: 2012-04-26
Posts: 115

Re: alsa-(re)store.service still used by systemd although disabled

Offline

Board footer

Powered by FluxBB