diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-09-29 17:26:34 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-29 17:54:17 +0200 |
commit | 7d6673cc1388729a906a33a87cc9817d44e043ad (patch) | |
tree | c60269327f519954580e7d4b9f238a6ff4f12f9d /alsactl/alsa-state.service.in | |
parent | cd1bb5f4a72c7364b2756db357d752a73baefc9b (diff) | |
download | alsa-utils-7d6673cc1388729a906a33a87cc9817d44e043ad.tar.gz |
alsactl: Manage both save and restore in a single unit
With RemainAfterExit=true, we can manage both save and restore of the
card state in a single unit file. This will fix also the case where
systemd reloads the service; with two individual units, it will
restore the previous state before saving, and may lead to inconsistent
state suddenly.
Also fix alsa-state.service as well to make both start and stop
working in a simpler way.
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=929619
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsactl/alsa-state.service.in')
-rw-r--r-- | alsactl/alsa-state.service.in | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/alsactl/alsa-state.service.in b/alsactl/alsa-state.service.in index 56c12c1..f1321d6 100644 --- a/alsactl/alsa-state.service.in +++ b/alsactl/alsa-state.service.in @@ -6,10 +6,7 @@ [Unit] Description=Manage Sound Card State (restore and store) ConditionPathExists=@daemonswitch@ -DefaultDependencies=no After=sysinit.target -Before=shutdown.target -Conflicts=shutdown.target [Service] Type=simple |